Orchard.Projections.Settings.SConvert.IsAnonymousType C# (CSharp) Method

IsAnonymousType() private static method

private static IsAnonymousType ( Type type ) : bool
type System.Type
return bool
        private static bool IsAnonymousType(Type type) {
            return Attribute.IsDefined(type, typeof(CompilerGeneratedAttribute), false)
                && type.IsGenericType && type.Name.Contains("AnonymousType")
                && (type.Attributes & TypeAttributes.NotPublic) == TypeAttributes.NotPublic;
        }