Properties of an anonymous typed object
- has a namespace equal to null
- base type of System.Object
- IsSealed = true
- custom attribute 0 is DebuggerDisplayAttribute, Type: ""
- IsPublic = false
For my particular application, if the namespace is null it can be inferred that the type is anonymous, so checking that the namespace is null is probably the least expensive check.