46 references to CodeTypeReference
PresentationBuildTasks (16)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (16)
874PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]) 1109PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]) 1238var iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 1470new CodeTypeReference(typeof(SuppressMessageAttribute)), 1480new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute))); 2031cmmEventHandler.ReturnType = new CodeTypeReference(typeof(void)); 2052cmmEventHandlerHelper.ReturnType = new CodeTypeReference(typeof(void)); 2403ctrTypeArg = new CodeTypeReference(typeParam); 2428new CodeTypeReference(typeof(GeneratedCodeAttribute)), 2555ReturnType = new CodeTypeReference(typeof(Delegate)), 2592cmmLC.ImplementationTypes.Add(new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])); 2704Type = new CodeTypeReference(typeof(bool)) 2765ReturnType = new CodeTypeReference(typeof(Object)) 2804ReturnType = new CodeTypeReference(typeof(Object)) 2876ReturnType = new CodeTypeReference(typeof(Delegate)) 3206cmmMain.ReturnType = new CodeTypeReference(typeof(void));
System.CodeDom (16)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
50ArrayElementType = new CodeTypeReference(type.GetElementType()!); 63public CodeTypeReference(Type type, CodeTypeReferenceOptions codeTypeReferenceOption) : this(type) 102TypeArguments.Add(new CodeTypeReference(genericArgs[i]));
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
40public void Add(Type value) => Add(new CodeTypeReference(value));
System\CodeDom\CodeArrayCreateExpression.cs (3)
29_createType = new CodeTypeReference(createType); 47_createType = new CodeTypeReference(createType); 65_createType = new CodeTypeReference(createType);
System\CodeDom\CodeCastExpression.cs (1)
24TargetType = new CodeTypeReference(targetType);
System\CodeDom\CodeCatchClause.cs (1)
39get => _catchExceptionType ??= new CodeTypeReference(typeof(Exception));
System\CodeDom\CodeMemberField.cs (1)
24Type = new CodeTypeReference(type);
System\CodeDom\CodeObjectCreateExpression.cs (1)
24CreateType = new CodeTypeReference(createType);
System\CodeDom\CodeParameterDeclarationExpression.cs (1)
24Type = new CodeTypeReference(type);
System\CodeDom\CodeTypeOfExpression.cs (1)
22Type = new CodeTypeReference(type);
System\CodeDom\CodeTypeReferenceExpression.cs (1)
22Type = new CodeTypeReference(type);
System\CodeDom\CodeVariableDeclarationStatement.cs (2)
24Type = new CodeTypeReference(type); 44Type = new CodeTypeReference(type);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
321return new CodeTypeReference(type);
System.Windows.Forms.Design (13)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1995CodeTypeReference typeRef = new(expressionType);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
398CodeTypeReference elementTypeRef = new(elementType); 626CodeTypeReference elementTypeRef = new(elementType);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
510CodeTypeReference type = new(typeof(IPersistComponentSettings)); 529CodeTypeReference type = new(typeof(ISupportInitialize));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
50CodeTypeReference delegateTypeRef = new(eventToSerialize.EventType);
System\ComponentModel\Design\Serialization\PrimitiveCodeDomSerializer.cs (1)
29_ => new CodeCastExpression(new CodeTypeReference(value.GetType()), new CodePrimitiveExpression(value)),
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
380classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute)) 386classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(CompilerGeneratedAttribute)) 442CodeAttributeDeclaration generatedCodeAttrib = new(new CodeTypeReference(typeof(GeneratedCodeAttribute))); 490CodeAttributeDeclaration suppressAttribute = new(new CodeTypeReference(typeof(SuppressMessageAttribute))); 537CodeTypeReference editorBrowsableStateType = new(typeof(EditorBrowsableState)) 718CodeTypeReference valueType = new(type);