ImpromptuInterface/src/Optimization/Util.cs
/// <summary>
/// Determines whether [is anonymous type] [the specified target].
/// </summary>
/// <param name="target">The target.</param>
/// <returns>
/// 	<c>true</c> if [is anonymous type] [the specified target]; otherwise, <c>false</c>.
/// </returns>
Determines whether [is anonymous type] [the specified target].
Determines whether [ is anonymous type ] [ the specified target ] .
public static bool IsAnonymousType(object target)
        {
            if(target ==null)
                return false;
            var type = target as Type ?? target.GetType();
            return type.IsNotPublic
                   && Attribute.IsDefined(
                       type,
                       typeof (CompilerGeneratedAttribute),
                       false);
        }
public static bool IsAnonymousType ( object target ) { if ( target == null ) return false ; var type = target as Type ?? target . GetType ( ) ; return type . IsNotPublic && Attribute . IsDefined ( type , typeof ( CompilerGeneratedAttribute ) , false ) ; }
Determines whether [is anonymous type] [the specified target].
Determines whether [ is anonymous type ] [ the specified target ] .
None
target
object
None