64 references to Add
dotnet-svcutil-lib (64)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
93
codeType.CustomAttributes.
Add
(generatedCodeAttribute);
140
classToGen.CustomAttributes.
Add
(xmlSchemaProviderAttribute);
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (1)
38
taskAyncMethod.CustomAttributes.
Add
(attr);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (2)
88
this.
Add
(value[i]);
106
this.
Add
(value[i]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (6)
193
_includeMetadata.
Add
(include);
206
_includeMetadata.
Add
(include);
259
codeClass.CustomAttributes.
Add
(flags);
289
metadata.
Add
(attribute);
301
metadata.
Add
(attribute);
317
field.CustomAttributes.
Add
(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
109
codeClass.CustomAttributes.
Add
(GeneratedCodeAttribute);
114
codeClass.CustomAttributes.
Add
(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName));
221
metadata.
Add
(attribute);
253
field.CustomAttributes.
Add
(attribute);
281
prop.CustomAttributes.
Add
(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (14)
156
codeClass.CustomAttributes.
Add
(GeneratedCodeAttribute);
161
codeClass.CustomAttributes.
Add
(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName));
169
codeClass.CustomAttributes.
Add
(GeneratedCodeAttribute);
208
metadata.
Add
(attribute);
536
metadata.
Add
(attribute);
708
metadata.
Add
(attribute);
799
metadata.
Add
(attribute);
804
metadata.
Add
(attribute);
824
field.CustomAttributes.
Add
(attribute);
852
prop.CustomAttributes.
Add
(attribute);
868
metadata.
Add
(attribute);
940
metadata.
Add
(attribute);
958
metadata.
Add
(attribute);
963
metadata.
Add
(new CodeAttributeDeclaration(typeof(XmlAnyAttributeAttribute).FullName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (13)
522
typeDecl.CustomAttributes.
Add
(debuggerStepThroughAttribute);
524
typeDecl.CustomAttributes.
Add
(generatedCodeAttribute);
820
type.CustomAttributes.
Add
(dataContractAttribute);
889
property.CustomAttributes.
Add
(dataMemberAttribute);
1004
contractCodeDomInfo.TypeDeclaration.CustomAttributes.
Add
(knownTypeAttribute);
1069
type.CustomAttributes.
Add
(new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfFlagsAttribute)));
1077
type.CustomAttributes.
Add
(dataContractAttribute);
1096
enumMember.CustomAttributes.
Add
(enumMemberAttribute);
1175
generatedType.CustomAttributes.
Add
(collectionContractAttribute);
1207
type.CustomAttributes.
Add
(new CodeAttributeDeclaration(
1215
type.CustomAttributes.
Add
(new CodeAttributeDeclaration(
1249
type.CustomAttributes.
Add
(xmlRootAttribute);
1279
_codeCompileUnit.AssemblyCustomAttributes.
Add
(namespaceAttribute);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
25
attributes.
Add
(result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (3)
244
clientType.Members[methodPosition].CustomAttributes.
Add
(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
506
beginMethod.CustomAttributes.
Add
(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
507
endMethod.CustomAttributes.
Add
(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (5)
83
context.SyncMethod.CustomAttributes.
Add
(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute));
113
context.SyncMethod.CustomAttributes.
Add
(knownTypeAttribute);
132
targetCompileUnit.AssemblyCustomAttributes.
Add
(assemblyCustomAttribute);
219
fieldAttributes.
Add
(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, dataMemberAttribute));
231
typeAttributes.
Add
(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, new DataContractAttribute()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
796
attributes.
Add
(ClientClassGenerator.CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (8)
377
context.ContractType.CustomAttributes.
Add
(serviceContractAttr);
384
context.SyncMethod.CustomAttributes.
Add
(CreateOperationContractAttributeDeclaration(context.Operation, false));
388
context.BeginMethod.CustomAttributes.
Add
(CreateOperationContractAttributeDeclaration(context.Operation, true));
392
context.TaskMethod.CustomAttributes.
Add
(CreateOperationContractAttributeDeclaration(context.Operation, false));
491
codeType.CustomAttributes.
Add
(new CodeAttributeDeclaration(_parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute))));
503
codeType.CustomAttributes.
Add
(generatedCodeAttribute);
598
methodDecl.CustomAttributes.
Add
(faultAttr);
818
methodDecl.CustomAttributes.
Add
(CreateAttrDecl(context, attr));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (3)
148
context.SyncMethod.CustomAttributes.
Add
(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute));
160
destination.
Add
(knownType);
253
typeAttributes.
Add
(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, xmlType));