99 references to CustomAttributes
dotnet-svcutil-lib (99)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
93codeType.CustomAttributes.Add(generatedCodeAttribute); 140classToGen.CustomAttributes.Add(xmlSchemaProviderAttribute);
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (2)
48CollectionHelpers.MapList<CodeAttributeDeclaration>(type.CustomAttributes, IsValidAttribute, null); 55CollectionHelpers.MapList<CodeAttributeDeclaration>(member.CustomAttributes, IsValidAttribute, null);
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (1)
474Enumerate(member.CustomAttributes);
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
498foreach (CodeAttributeDeclaration attr in iface.CustomAttributes) 523foreach (CodeAttributeDeclaration attr in method.CustomAttributes)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (2)
33foreach (CodeAttributeDeclaration attr in syncMethod.CustomAttributes) 38taskAyncMethod.CustomAttributes.Add(attr);
CodeDomFixup\CodeDomVisitors\TypeWithAttributeVisitor.cs (1)
15return CodeDomHelpers.FindAttribute<T>(type.CustomAttributes) != null;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (12)
251if (e.CustomAttributes.Count > 0) 253ValidateAttributes(e.CustomAttributes); 270if (e.CustomAttributes.Count > 0) 272ValidateAttributes(e.CustomAttributes); 295if (e.CustomAttributes.Count > 0) 297ValidateAttributes(e.CustomAttributes); 367if (e.CustomAttributes.Count > 0) 369ValidateAttributes(e.CustomAttributes); 399if (e.CustomAttributes.Count > 0) 401ValidateAttributes(e.CustomAttributes); 625if (e.CustomAttributes.Count > 0) 627ValidateAttributes(e.CustomAttributes);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (18)
1837if (e.CustomAttributes.Count > 0) 1839GenerateAttributes(e.CustomAttributes); 1986if (e.CustomAttributes.Count > 0) 1988GenerateAttributes(e.CustomAttributes); 2000if (e.CustomAttributes.Count > 0) 2002GenerateAttributes(e.CustomAttributes); 2042if (e.CustomAttributes.Count > 0) 2044GenerateAttributes(e.CustomAttributes); 2107if (e.CustomAttributes.Count > 0) 2109GenerateAttributes(e.CustomAttributes); 2203if (e.CustomAttributes.Count > 0) 2205GenerateAttributes(e.CustomAttributes); 2538if (e.CustomAttributes.Count > 0) 2540GenerateAttributes(e.CustomAttributes); 2592if (e.CustomAttributes.Count > 0) 2594GenerateAttributes(e.CustomAttributes); 2706if (e.CustomAttributes.Count > 0) 2708GenerateAttributes(e.CustomAttributes);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
259codeClass.CustomAttributes.Add(flags); 317field.CustomAttributes.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (8)
109codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 114codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 116AddTypeMetadata(codeClass.CustomAttributes, typeof(SoapTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema); 152CodeExporter.AddIncludeMetadata(codeClass.CustomAttributes, mapping, typeof(SoapIncludeAttribute)); 245AddMemberMetadata(field.CustomAttributes, member, false); 253field.CustomAttributes.Add(attribute); 269AddMemberMetadata(prop.CustomAttributes, member, false); 281prop.CustomAttributes.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (11)
156codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 161codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 164AddTypeMetadata(codeClass.CustomAttributes, typeof(XmlTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema); 166else if (FindAttributeDeclaration(typeof(GeneratedCodeAttribute), codeClass.CustomAttributes) == null) 169codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 178AddRootMetadata(codeClass.CustomAttributes, mapping, name, ns, rootElement); 598AddIncludeMetadata(codeClass.CustomAttributes, mapping, typeof(XmlIncludeAttribute)); 816AddMemberMetadata(field, field.CustomAttributes, member, ns, false, field.Comments, ctor); 824field.CustomAttributes.Add(attribute); 840AddMemberMetadata(field, prop.CustomAttributes, member, ns, false, prop.Comments, ctor); 852prop.CustomAttributes.Add(attribute);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (12)
522typeDecl.CustomAttributes.Add(debuggerStepThroughAttribute); 524typeDecl.CustomAttributes.Add(generatedCodeAttribute); 820type.CustomAttributes.Add(dataContractAttribute); 889property.CustomAttributes.Add(dataMemberAttribute); 1004contractCodeDomInfo.TypeDeclaration.CustomAttributes.Add(knownTypeAttribute); 1069type.CustomAttributes.Add(new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfFlagsAttribute))); 1077type.CustomAttributes.Add(dataContractAttribute); 1096enumMember.CustomAttributes.Add(enumMemberAttribute); 1175generatedType.CustomAttributes.Add(collectionContractAttribute); 1207type.CustomAttributes.Add(new CodeAttributeDeclaration( 1215type.CustomAttributes.Add(new CodeAttributeDeclaration( 1249type.CustomAttributes.Add(xmlRootAttribute);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (3)
244clientType.Members[methodPosition].CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced)); 506beginMethod.CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced)); 507endMethod.CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
83context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute)); 113context.SyncMethod.CustomAttributes.Add(knownTypeAttribute);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (11)
324TypedMessageHelper.AddEditorBrowsableAttribute(typedMessageDecl.CustomAttributes); 390CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(_method.CustomAttributes), OperationContractAttribute.ActionPropertyName, _request.Action); 395CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(_method.CustomAttributes), OperationContractAttribute.ReplyActionPropertyName, _response.Action); 414_ins = new ParametersPartCodeGenerator(this, beginMethod.Name, beginMethod.Parameters, beginMethod.CustomAttributes, FieldDirection.In); 415_outs = new ParametersPartCodeGenerator(this, beginMethod.Name, endMethod.Parameters, beginMethod.CustomAttributes, FieldDirection.Out); 568return memberDecl.CustomAttributes; 575return _typeDecl.CustomAttributes; 594TypedMessageHelper.AddEditorBrowsableAttribute(wrapperTypeDecl.CustomAttributes); 599_wrappedBodyTypeGenerator.AddTypeAttributes(messageName, defaultNS, wrapperTypeDecl.CustomAttributes, _isEncoded); 607AddWrapperPart(messageDescription.MessageName, _wrappedBodyTypeGenerator, partGenerator, messageDescription.Body.ReturnValue, wrapperTypeDecl.CustomAttributes); 616AddWrapperPart(messageDescription.MessageName, _wrappedBodyTypeGenerator, partGenerator, part, wrapperTypeDecl.CustomAttributes);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (8)
377context.ContractType.CustomAttributes.Add(serviceContractAttr); 384context.SyncMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, false)); 388context.BeginMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, true)); 392context.TaskMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, false)); 491codeType.CustomAttributes.Add(new CodeAttributeDeclaration(_parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute)))); 503codeType.CustomAttributes.Add(generatedCodeAttribute); 598methodDecl.CustomAttributes.Add(faultAttr); 818methodDecl.CustomAttributes.Add(CreateAttrDecl(context, attr));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
148context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute)); 149AddKnownTypes(context.SyncMethod.CustomAttributes, xmlSerializerFormatAttribute.IsEncoded ? SoapExporter.IncludeMetadata : XmlExporter.IncludeMetadata);