CodeDomFixup\CodeDomHelpers.cs (13)
62internal static CodeMemberMethod GetImplementationOfMethod(CodeTypeReference ifaceType, CodeMemberMethod method)
119internal static bool MatchType<T>(CodeTypeReference typeRef)
125internal static bool MatchType(CodeTypeReference typeRef, Type type)
131internal static bool MatchType(CodeTypeReference typeRef1, CodeTypeReference typeRef2)
136private static bool MatchType(CodeTypeReference typeRef1, CodeTypeReference typeRef2, bool ignoreArrayness, bool ignoreGenericParameters)
167internal static bool MatchGenericBaseType(CodeTypeReference typeRef, Type type)
172internal static bool MatchBaseType(CodeTypeReference typeRef, Type type)
177internal static bool MatchAnyBaseType(CodeTypeReference typeRef, Type[] types)
187internal static bool MatchAnyBaseType(CodeTypeReference typeRef, CodeTypeReference[] types)
211internal static CodeTypeDeclaration ResolveTypeReference(CodeTypeReference type)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (29)
348internal CodeTypeReference GetCodeTypeReference(DataContract dataContract)
358private CodeTypeReference GetCodeTypeReference(Type type)
364internal CodeTypeReference GetElementTypeReference(DataContract dataContract, bool isElementTypeNullable)
366CodeTypeReference elementTypeReference = GetCodeTypeReference(dataContract);
407CodeTypeReference referencedType = GetReferencedType(dataContract);
531private CodeTypeReference GetReferencedType(DataContract dataContract)
534CodeTypeReference typeReference = GetSurrogatedTypeReference(dataContract);
594private CodeTypeReference GetReferencedCollectionType(CollectionDataContract collectionContract)
601CodeTypeReference typeReference;
632private bool TryGetReferencedDictionaryType(CollectionDataContract collectionContract, out CodeTypeReference typeReference)
644CodeTypeReference keyTypeReference = GetElementTypeReference(keyMember.MemberTypeContract, keyMember.IsNullable);
645CodeTypeReference valueTypeReference = GetElementTypeReference(valueMember.MemberTypeContract, valueMember.IsNullable);
658private bool TryGetReferencedListType(DataContract itemContract, bool isItemTypeNullable, out CodeTypeReference typeReference)
671private CodeTypeReference GetSurrogatedTypeReference(DataContract dataContract)
683CodeTypeReference typeReference = GetCodeTypeReference(type);
691private CodeTypeReference GetReferencedGenericType(GenericInfo genInfo, out DataContract dataContract)
712CodeTypeReference typeReference = GetCodeTypeReference(type);
723CodeTypeReference paramTypeReference;
864CodeTypeReference memberType = GetElementTypeReference(dataMember.MemberTypeContract,
907internal ICollection<CodeTypeReference> GetKnownTypeReferences(DataContract dataContract)
917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
1009private CodeTypeReference WrapNullable(CodeTypeReference memberType)
1014CodeTypeReference nullableOfMemberType = GetCodeTypeReference(Globals.TypeOfNullable);
1136CodeTypeReference baseTypeReference;
1545private CodeTypeReference CodeTypeIPropertyChange
1729private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType)
1734private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType, bool raisePropertyChanged)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (17)
20private Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes;
31internal void Add(MessagePartDescription part, CodeTypeReference typeReference, ICollection<CodeTypeReference> knownTypeReferences, bool isNonNillableReferenceType)
54internal Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes
59_knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>();
86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer());
100private void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<CodeTypeReference, object> operationKnownTypes)
102ICollection<CodeTypeReference> knownTypesForPart;
105foreach (CodeTypeReference knownTypeReference in knownTypesForPart)
146private static CodeTypeReference s_dataContractAttributeTypeRef = new CodeTypeReference(typeof(DataContractAttribute));
236private class CodeTypeReferenceComparer : IEqualityComparer<CodeTypeReference>
238public bool Equals(CodeTypeReference x, CodeTypeReference y)
250foreach (CodeTypeReference xTypeArg in xTypeArgs)
252foreach (CodeTypeReference yTypeArg in yTypeArgs)
262public int GetHashCode(CodeTypeReference obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (12)
585CodeTypeReference detailElementTypeRef;
1510internal virtual CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1515internal virtual CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
1671CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName);
1672ICollection<CodeTypeReference> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName);
1731CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName, element);
1732ICollection<CodeTypeReference> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName);
1744CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName, element);
1776internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1803internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
2012internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
2021internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (27)
28private Dictionary<MessagePartDescription, CodeTypeReference> _parameterTypes;
46internal Dictionary<MessagePartDescription, CodeTypeReference> ParameterTypes
51_parameterTypes = new Dictionary<MessagePartDescription, CodeTypeReference>();
66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
99private readonly Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes;
122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
283CodeTypeReference typedReqMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Request", _request, false /*isReply*/, hideFromEditor, ref _isNewRequest, out _beginPartCodeGenerator);
289CodeTypeReference typedRespMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Response", _response, true /*isReply*/, hideFromEditor, ref _isNewResponse, out _endPartCodeGenerator);
299private CodeTypeReference GenerateTypedMessageHeaderAndReturnValueParts(CodeNamespace ns, string defaultName, MessageDescription message, bool isReply, bool hideFromEditor, ref bool isNewMessage, out IPartCodeGenerator partCodeGenerator)
301CodeTypeReference typedMessageRef;
401CodeAttributeDeclarationCollection AddPart(CodeTypeReference type, ref string name);
419internal CodeParameterDeclarationExpression GetOrCreateParameter(CodeTypeReference type, string name, FieldDirection direction, ref int index, out bool createdNew)
492CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(CodeTypeReference type, ref string name)
561CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(CodeTypeReference type, ref string name)
590CodeTypeReference wrapperTypeRef = namespaceScope.AddUnique(wrapperTypeDecl, typeName + "Body", "Body");
613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>();
621ICollection<CodeTypeReference> knownTypesForPart = null;
624foreach (CodeTypeReference typeReference in knownTypesForPart)
686CodeTypeReference type;
711CodeTypeReference partType = GetParameterType(messagePart);
731CodeTypeReference partType = GetParameterType(setting);
737private CodeTypeReference GetParameterType(MessagePartDescription setting)
799internal static void AddGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message, CodeTypeReference codeTypeReference)
807internal static bool FindGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message, out CodeTypeReference codeTypeReference)
953CodeTypeReference resultType = _method.ReturnType;
954CodeTypeReference taskReturnType;