65 writes to Name
dotnet-svcutil-lib (65)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (5)
163nodesField.Name = "nodesList"; 176nodesProperty.Name = "Nodes"; 192getSchemaMethod.Name = "GetSchema"; 208writeXml.Name = "WriteXml"; 239readXml.Name = "ReadXml";
CodeDomFixup\CodeDomHelpers.cs (1)
65m.Name = method.Name;
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
34Name = nameScope.UniqueMemberName(methodName + "Async"),
CodeDomFixup\CodeDomVisitors\CodeNamespaceUniqueTypeFixer.cs (1)
23typeDeclaration.Name = uniqueName;
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (8)
50type.Name += "Base"; 245operationCompletedMethod.Name = nameScope.UniqueMemberName("On" + syncMethod.Name + "Received"); 317operationCompletedEvent.Name = nameScope.UniqueMemberName(syncMethod.Name + "Received"); 342evtArg.Name = nameScope.UniqueMemberName(syncMethod.Name + "ReceivedEventArgs"); 374property.Name = typeNamescope.UniqueMemberName(param.Name); 396callbackImpl.Name = nameScope.UniqueMemberName(parent.Name + "Callback"); 413Name = "proxy", 423m.Name = "Initialize";
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
31typeDeclaration.Name = "@" + typeDeclaration.Name;
CodeDomFixup\MethodCreationHelper.cs (4)
27Name = ConfigToCodeConstants.GetEndpointAddressMethod, 36Name = ConfigToCodeConstants.GetBindingMethod, 2177Name = ConfigToCodeConstants.GetDefaultBindingMethod, 2184Name = ConfigToCodeConstants.GetDefaultEndpointAddressMethod,
FrameworkFork\Microsoft.CodeDom\System\CodeConstructor.cs (1)
35Name = ".ctor";
FrameworkFork\Microsoft.CodeDom\System\CodeMemberField.cs (3)
46Name = name; 55Name = name; 64Name = name;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeConstructor.cs (1)
32Name = ".cctor";
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclaration.cs (1)
75Name = name;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDelegate.cs (1)
49Name = name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (4)
349prop.Name = name; 352prop.Name = "SystemMember"; 407raisePropertyChangedEventMethod.Name = "RaisePropertyChanged"; 426propertyChangedEvent.Name = "PropertyChanged";
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (12)
873field.Name = fieldName; 1092enumMember.Name = GetMemberName(stringValue, contractCodeDomInfo); 1573nodeArrayField.Name = Globals.NodeArrayFieldName; 1583readXmlMethod.Name = "ReadXml"; 1605writeXmlMethod.Name = "WriteXml"; 1627getSchemaMethod.Name = "GetSchema"; 1641getSchemaStaticMethod.Name = Globals.ExportSchemaMethod; 1669extensionDataObjectField.Name = Globals.ExtensionDataObjectFieldName; 1681extensionDataObjectProperty.Name = Globals.ExtensionDataObjectPropertyName; 1703raisePropertyChangedEventMethod.Name = "RaisePropertyChanged"; 1722propertyChangedEvent.Name = "PropertyChanged"; 1738property.Name = propertyName;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (15)
165clientType.Name = NamingHelper.GetUniqueName(GetClientClassName(context.ContractType.Name), DoesMethodNameExist, context.Operations); 265helperMethod.Name = method.Name; 472m.Name = method.Name; 570resultsField.Name = NamingHelper.GetUniqueName("results", DoesMemberNameExist, argsType); 576argsType.Name = NamingHelper.GetUniqueName(GetOperationCompletedEventArgsTypeName(syncMethodName), 601property.Name = propertyName; 631operationCompletedEvent.Name = NamingHelper.GetUniqueName(GetOperationCompletedEventName(syncMethodName), 644beginOperationDelegate.Name = NamingHelper.GetUniqueName(GetBeginOperationDelegateName(syncMethodName), 657onBeginOperationMethod.Name = NamingHelper.GetUniqueName(GetBeginOperationMethodName(syncMethodName), 699endOperationDelegate.Name = NamingHelper.GetUniqueName(GetEndOperationDelegateName(syncMethodName), 711onEndOperationMethod.Name = NamingHelper.GetUniqueName(GetEndOperationMethodName(syncMethodName), DoesMethodNameExist, context.Operations); 774operationCompletedDelegate.Name = NamingHelper.GetUniqueName(GetOperationCompletedDelegateName(syncMethodName), 786operationCompletedMethod.Name = NamingHelper.GetUniqueName(GetOperationCompletedMethodName(syncMethodName), 844eventAsyncMethod.Name = NamingHelper.GetUniqueName(GetEventAsyncMethodName(syncMethodName), 892eventAsyncMethodOverload.Name = eventAsyncMethod.Name;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
564memberDecl.Name = name = _memberScope.AddUnique(name, "member");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (4)
279syncMethod.Name = syncMethodName; 288beginMethod.Name = ServiceReflector.BeginMethodNamePrefix + syncMethodName; 295endMethod.Name = ServiceReflector.EndMethodNamePrefix + syncMethodName; 321CodeMemberMethod taskBasedAsyncMethod = new CodeMemberMethod { Name = syncMethodName + ServiceReflector.AsyncMethodNameSuffix };
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
139codeType.Name = base.AddUnique(name, defaultName);
144 references to Name
dotnet-svcutil-lib (144)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
71if (!nameTable.ContainsKey(type.Name)) 73nameTable.Add(type.Name, type);
CodeDomFixup\CodeDomHelpers.cs (8)
52return method.Name == methodName; 65m.Name = method.Name; 80string methodName = method.Name; 95return (method.Name.EndsWith("Async", StringComparison.Ordinal) && 103return (method.Name.StartsWith("Begin", StringComparison.Ordinal) || method.Name.StartsWith("OnBegin", StringComparison.Ordinal)) && 113return (method.Name.StartsWith("End", StringComparison.Ordinal) || method.Name.StartsWith("OnEnd", StringComparison.Ordinal)) &&
CodeDomFixup\CodeDomVisitors\CodeNamespaceUniqueTypeFixer.cs (2)
20var uniqueName = namespaceScope.AddUnique(typeDeclaration.Name, string.Empty); 21if (uniqueName != typeDeclaration.Name)
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
18_nameTable[member.Name] = member;
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (23)
48_eventBasedDuplexClass = new CodeTypeDeclaration(type.Name); 51_eventBasedDuplexClass.BaseTypes.Add(type.Name); 112ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 123ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 147ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 160ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 186ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 195ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 234System.Diagnostics.Debug.Assert(!methodNames.ContainsKey(method.Name), $"Key '{method.Name}' already added to dictionary!"); 235methodNames[method.Name] = member.Name; 245operationCompletedMethod.Name = nameScope.UniqueMemberName("On" + syncMethod.Name + "Received"); 267newEventArgsExpr = new CodeObjectCreateExpression(operationReceivedEventArgsType.Name, 284CodeEventReferenceExpression completedEvent = new CodeEventReferenceExpression(new CodeThisReferenceExpression(), operationCompletedEvent.Name); 317operationCompletedEvent.Name = nameScope.UniqueMemberName(syncMethod.Name + "Received"); 327operationCompletedEvent.Type.TypeArguments.Add(operationCompletedEventArgsType.Name); 342evtArg.Name = nameScope.UniqueMemberName(syncMethod.Name + "ReceivedEventArgs"); 396callbackImpl.Name = nameScope.UniqueMemberName(parent.Name + "Callback"); 400callbackImpl.BaseTypes.Add(new CodeTypeReference(callbackInterface.Name)); 414Type = new CodeTypeReference(parent.Name) 429Type = new CodeTypeReference(parent.Name) 474MethodName = methodNames[method.Name],
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (3)
44_privateIfaceMethods[method.Name] = new PrivateInterfaceMethod(null); 53if (!_privateIfaceMethods.ContainsKey(method.Name)) 56_privateIfaceMethods.Add(method.Name, new PrivateInterfaceMethod(ifaceType));
CodeDomFixup\CodeDomVisitors\RemoveExtensibleDataObjectImpl.cs (1)
40switch (member.Name)
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
60if (memberProp.Name == specialFieldName
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (3)
24var fullName = string.IsNullOrEmpty(typeNamespace) ? typeDeclaration.Name : typeNamespace + "." + typeDeclaration.Name; 37fullName = fullName + "+" + typeDeclaration.Name;
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (2)
29if (_reservedKeyword.Contains(typeDeclaration.Name)) 31typeDeclaration.Name = "@" + typeDeclaration.Name;
CodeDomFixup\ConfigToCode.cs (13)
193new CodeTypeReferenceExpression(clientType.Name), 197new CodeTypeReferenceExpression(clientType.Name), 220new CodeTypeReferenceExpression(clientType.Name), 225new CodeTypeReferenceExpression(clientType.Name), 250new CodeTypeReferenceExpression(clientType.Name), 279new CodeTypeReferenceExpression(clientType.Name), 323new CodeTypeReferenceExpression(clientType.Name), 327new CodeTypeReferenceExpression(clientType.Name), 350new CodeTypeReferenceExpression(clientType.Name), 355new CodeTypeReferenceExpression(clientType.Name), 379new CodeTypeReferenceExpression(clientType.Name), 406new CodeTypeReferenceExpression(clientType.Name), 429foreach (var extendedClientType in FindExtendedClientTypes(clientType.Name, namespaceDecl))
CodeDomFixup\MethodCreationHelper.cs (1)
88this.CreateDefaultEndpointMethods(this.ClientType.Name, endpointNames);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
60return _currentClass.Name; 90return _currentMember.Name;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (6)
256ValidateIdentifier(e, "Name", e.Name); 308if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) 314ValidateIdentifier(e, "Name", e.Name); 382ValidateIdentifier(e, "Name", e.Name); 404ValidateIdentifier(e, "Name", e.Name); 632ValidateIdentifier(e, "Name", e.Name);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (9)
295return _currentClass.Name; 1847string name = e.Name; 1990OutputIdentifier(e.Name); 2008OutputTypeNamePair(e.Type, e.Name); 2137OutputIdentifier(e.Name); 2230if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) 2238OutputIdentifier(e.Name); 2727OutputIdentifier(e.Name); 2735OutputIdentifier(e.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
206if (_clrType == type.Name)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (4)
358ret.Expression = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name); 362CodeExpression left = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name); 370prop.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(name))); 412raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (2)
232scope.AddReserved(CodeExporter.PropertyChangedEvent.Name); 233scope.AddReserved(CodeExporter.RaisePropertyChangedEventMethod.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
547assign.Left = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (12)
119AddGlobalTypeName(codeTypeDecl.Name); 755if (String.Compare(typeName, type.Name, StringComparison.OrdinalIgnoreCase) == 0) 780if (String.Compare(typeName, ((CodeTypeDeclaration)member).Name, StringComparison.OrdinalIgnoreCase) == 0) 881if (dataMemberName != property.Name) 1028contractCodeDomInfo.GetMemberNames().Add(extensionDataObjectField.Name, null); 1031contractCodeDomInfo.GetMemberNames().Add(extensionDataObjectProperty.Name, null); 1047contractCodeDomInfo.GetMemberNames().Add(memberEvent.Name, null); 1048contractCodeDomInfo.GetMemberNames().Add(raisePropertyChangedEventMethod.Name, null); 1094if (enumMember.Name != stringValue) 1289if (memberName == contractCodeDomInfo.TypeDeclaration.Name) 1708raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1769ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (31)
165clientType.Name = NamingHelper.GetUniqueName(GetClientClassName(context.ContractType.Name), DoesMethodNameExist, context.Operations); 217GenerateEventAsyncMethods(context, clientType, operationContext.SyncMethod.Name, beginMethod, endMethod); 265helperMethod.Name = method.Name; 267CodeMethodInvokeExpression invokeMethod = new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeCastExpression(ifaceType, new CodeThisReferenceExpression()), method.Name)); 320CodeFieldReferenceExpression fieldRef = new CodeFieldReferenceExpression(target, field.Name); 339param = new CodeParameterDeclarationExpression(field.Type, NamingHelper.GetUniqueName(field.Name, DoesParameterNameExist, helperMethod)); 356if (p.Name == field.Name) 373if (string.Compare(typeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 380if (string.Compare(member.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 394if (string.Compare(codeTypeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 424if (String.Compare(operationContext.SyncMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 428if (String.Compare(operationContext.BeginMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 430if (String.Compare(operationContext.EndMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 435if (String.Compare(operationContext.TaskMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 445if (String.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 458CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression(GetChannelReference(), method.Name); 472m.Name = method.Name; 571resultsFieldReference.FieldName = resultsField.Name; 628operationCompletedEvent.Type.TypeArguments.Add(operationCompletedEventArgsType.Name); 665CodeMethodInvokeExpression invokeBegin = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), beginMethod.Name); 714CodeMethodInvokeExpression invokeEnd = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), endMethod.Name); 802newEventArgsExpr = new CodeObjectCreateExpression(operationCompletedEventArgsType.Name, 816CodeEventReferenceExpression completedEvent = new CodeEventReferenceExpression(new CodeThisReferenceExpression(), operationCompletedEvent.Name); 869invokeAsync.Parameters.Add(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), beginOperationDelegate.Name)); 878invokeAsync.Parameters.Add(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), endOperationDelegate.Name)); 879invokeAsync.Parameters.Add(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), operationCompletedDelegate.Name)); 892eventAsyncMethodOverload.Name = eventAsyncMethod.Name; 896new CodeThisReferenceExpression(), eventAsyncMethod.Name); 923new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), delegateField.Name), 927new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), delegateField.Name), 929new CodeThisReferenceExpression(), delegateMethod.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (9)
152_defaultName = _method.Name; 160_defaultName = _method.Name.Substring(5); 318WrapTypedMessage(ns, typedMessageDecl.Name, message, isReply, _context.IsInherited, hideFromEditor); 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); 558_memberScope.AddReserved(typeDecl.Name); 829CodeParameterDeclarationExpression param = new CodeParameterDeclarationExpression(field.Type, field.Name); 831otherCtor.Statements.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name))); 950_defaultName = _context.SyncMethod.Name;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (4)
345if (context.ContractType.Name != context.Contract.CodeName) 442new UniqueCodeNamespaceScope(context.Namespace).AddUnique(channelType, context.ContractType.Name + Strings.ChannelTypeSuffix, Strings.ChannelTypeSuffix); 765CodeTypeReference codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
153if (String.Compare(codeType.Name, typeName, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
214if (typeDecl.Name == comparableTypeName)
ImportModule.cs (1)
191if (type.Name == contract.Name)