private static bool ContainsAnonymousType(TypeReference type) { V_0 = type.Resolve(); if (V_0 == null) { return(false); } if (V_0.IsAnonymous()) { return(true); } return(type.ContainsAnonymousType()); }
public ICodeNode VisitObjectCreationExpression(ObjectCreationExpression node) { if (node.get_Type() == null || node.get_Constructor() == null || !node.get_Type().get_IsGenericInstance()) { return(null); } V_0 = node.get_Type().Resolve(); if (!V_0.IsAnonymous()) { return(null); } this.initializerExpressions = new BlockExpression(null); this.ProcessAnonymousType(V_0, node.get_Type() as GenericInstanceType, node.get_Constructor().Resolve(), node.get_Arguments()); V_1 = new InitializerExpression(this.initializerExpressions, 3); return(new AnonymousObjectCreationExpression(node.get_Constructor(), V_0, V_1, node.get_MappedInstructions())); }