SignalR.EventStream.Utilities.IsAnonymousType C# (CSharp) Method

IsAnonymousType() public static method

public static IsAnonymousType ( Type type ) : bool
type System.Type
return bool
            public static bool IsAnonymousType(Type type)
            {
                if (type == null)
                    throw new ArgumentNullException("type");

                return (type.IsClass
                        && type.IsSealed
                        && type.BaseType == typeof(object)
                        && type.Name.StartsWith("<>", StringComparison.Ordinal)
                        && type.IsDefined(typeof(CompilerGeneratedAttribute), true));
            }
        }
EventStream.Utilities