78 references to CodeTypeReference
dotnet-svcutil-lib (78)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (10)
87CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(GeneratedCodeAttribute))); 137CodeAttributeDeclaration xmlSchemaProviderAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.XmlSchemaProviderAttribute)), 142classToGen.BaseTypes.Add(new CodeTypeReference(typeof(Object))); 143classToGen.BaseTypes.Add(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable))); 194getSchemaMethod.ReturnType = new CodeTypeReference(typeof(Microsoft.Xml.Schema.XmlSchema)); 198new CodeTypeReference(typeof(NotImplementedException)), 212writeXml.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlWriter)), "writer")); 222CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), eCurrent); 243readXml.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlReader)), "reader")); 264CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), new CodeVariableReferenceExpression("elem"));
CodeDomFixup\CodeDomHelpers.cs (4)
96(MatchType(method.ReturnType, new CodeTypeReference(typeof(Task<>)), false, true) || 127return MatchType(typeRef, new CodeTypeReference(type)); 169return MatchType(typeRef, new CodeTypeReference(type), false/*ignoreArrayness*/, true/*ignoreGenericParameters*/); 174return MatchType(typeRef, new CodeTypeReference(type), true/*ignoreArrayness*/, true/*ignoreGenericParameters*/);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (5)
74CodeTypeReference delegateType = new CodeTypeReference(typeof(Action<>)); 75delegateType.TypeArguments.Add(new CodeTypeReference(typeof(IAsyncResult))); 82ReturnType = new CodeTypeReference(typeof(Task)), 91TargetType = new CodeTypeReference(typeof(ICommunicationObject)), 127TargetType = new CodeTypeReference(typeof(ICommunicationObject)),
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (11)
124ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 161ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 196ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); ; 248operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(object)), "state")); 249operationCompletedMethod.ReturnType = new CodeTypeReference(typeof(void)); 255Type = new CodeTypeReference(typeof(object[])), 258TargetType = new CodeTypeReference(typeof(object[])), 319operationCompletedEvent.Type = new CodeTypeReference(typeof(EventHandler)); 343evtArg.BaseTypes.Add(new CodeTypeReference(typeof(AsyncCompletedEventArgs))); 399callbackImpl.BaseTypes.Add(new CodeTypeReference(typeof(object))); 457arr.CreateType = new CodeTypeReference(typeof(object));
CodeDomFixup\MethodCreationHelper.cs (4)
29ReturnType = new CodeTypeReference(typeof(EndpointAddress)), 38ReturnType = new CodeTypeReference(typeof(Binding)), 2178ReturnType = new CodeTypeReference(typeof(Binding)), 2185ReturnType = new CodeTypeReference(typeof(EndpointAddress)),
FrameworkFork\Microsoft.CodeDom\System\CodeArrayCreateExpression.cs (3)
64_createType = new CodeTypeReference(createType); 94_createType = new CodeTypeReference(createType); 124_createType = new CodeTypeReference(createType);
FrameworkFork\Microsoft.CodeDom\System\CodeCastExpression.cs (1)
64TargetType = new CodeTypeReference(targetType);
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClause.cs (1)
87_catchExceptionType = new CodeTypeReference(typeof(System.Exception));
FrameworkFork\Microsoft.CodeDom\System\CodeMemberField.cs (1)
63Type = new CodeTypeReference(type);
FrameworkFork\Microsoft.CodeDom\System\CodeObjectCreateExpression.cs (1)
63CreateType = new CodeTypeReference(createType);
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpression.cs (1)
65Type = new CodeTypeReference(type);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeOfExpression.cs (1)
59Type = new CodeTypeReference(type);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (3)
65_arrayElementType = new CodeTypeReference(type.GetElementType()); 78public CodeTypeReference(Type type, CodeTypeReferenceOptions codeTypeReferenceOption) : this(type) 122TypeArguments.Add(new CodeTypeReference(genericArgs[i]));
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (1)
90Add(new CodeTypeReference(value));
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceExpression.cs (1)
59Type = new CodeTypeReference(type);
FrameworkFork\Microsoft.CodeDom\System\CodeVariableDeclarationStatement.cs (2)
63Type = new CodeTypeReference(type); 95Type = new CodeTypeReference(type);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (3)
247codeClass.BaseTypes.Add(new CodeTypeReference(typeof(long))); 391codeClass.BaseTypes.Add(new CodeTypeReference(typeof(System.ComponentModel.INotifyPropertyChanged))); 427propertyChangedEvent.Type = new CodeTypeReference(typeof(PropertyChangedEventHandler));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
304initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] { new CodePrimitiveExpression(ticks) }); 311initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(Guid)), new CodeExpression[] { valueExpression });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
361return new CodeTypeReference(type);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
18CodeTypeReference refT = new CodeTypeReference(typeof(T));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (16)
52private static CodeTypeReference s_voidTypeRef = new CodeTypeReference(typeof(void)); 53private static CodeTypeReference s_asyncResultTypeRef = new CodeTypeReference(typeof(IAsyncResult)); 254CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(EditorBrowsableAttribute))); 520argsType.BaseTypes.Add(new CodeTypeReference(s_asyncCompletedEventArgsType)); 524resultsField.Type = new CodeTypeReference(s_objectArrayType); 620operationCompletedEvent.Type = new CodeTypeReference(s_eventHandlerType); 656onBeginOperationMethod.ReturnType = new CodeTypeReference(s_asyncResultType); 661inValuesParam.Type = new CodeTypeReference(s_objectArrayType); 710onEndOperationMethod.ReturnType = new CodeTypeReference(s_objectArrayType); 716retArray.CreateType = new CodeTypeReference(s_objectArrayType); 773operationCompletedDelegate.Type = new CodeTypeReference(s_sendOrPostCallbackType); 789operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), "state")); 790operationCompletedMethod.ReturnType = new CodeTypeReference(s_voidType); 847eventAsyncMethod.ReturnType = new CodeTypeReference(s_voidType); 849CodeArrayCreateExpression invokeAsyncInValues = new CodeArrayCreateExpression(new CodeTypeReference(s_objectArrayType)); 862eventAsyncMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), userStateParamName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
146private static CodeTypeReference s_dataContractAttributeTypeRef = new CodeTypeReference(typeof(DataContractAttribute));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
957taskReturnType = new CodeTypeReference(ServiceReflector.taskType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
54return new CodeTypeReference(type); 589private static CodeTypeReference s_voidTypeReference = new CodeTypeReference(typeof(void));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
170CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new CodeTypeReference(typeof(ServiceKnownTypeAttribute)));