64 references to Add
dotnet-svcutil-lib (64)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
93codeType.CustomAttributes.Add(generatedCodeAttribute); 140classToGen.CustomAttributes.Add(xmlSchemaProviderAttribute);
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (1)
38taskAyncMethod.CustomAttributes.Add(attr);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (2)
88this.Add(value[i]); 106this.Add(value[i]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (6)
193_includeMetadata.Add(include); 206_includeMetadata.Add(include); 259codeClass.CustomAttributes.Add(flags); 289metadata.Add(attribute); 301metadata.Add(attribute); 317field.CustomAttributes.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
109codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 114codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 221metadata.Add(attribute); 253field.CustomAttributes.Add(attribute); 281prop.CustomAttributes.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (14)
156codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 161codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 169codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 208metadata.Add(attribute); 536metadata.Add(attribute); 708metadata.Add(attribute); 799metadata.Add(attribute); 804metadata.Add(attribute); 824field.CustomAttributes.Add(attribute); 852prop.CustomAttributes.Add(attribute); 868metadata.Add(attribute); 940metadata.Add(attribute); 958metadata.Add(attribute); 963metadata.Add(new CodeAttributeDeclaration(typeof(XmlAnyAttributeAttribute).FullName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (13)
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); 1279_codeCompileUnit.AssemblyCustomAttributes.Add(namespaceAttribute);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
25attributes.Add(result);
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 (5)
83context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute)); 113context.SyncMethod.CustomAttributes.Add(knownTypeAttribute); 132targetCompileUnit.AssemblyCustomAttributes.Add(assemblyCustomAttribute); 219fieldAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, dataMemberAttribute)); 231typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, new DataContractAttribute()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
796attributes.Add(ClientClassGenerator.CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
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 (3)
148context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute)); 160destination.Add(knownType); 253typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, xmlType));