55 writes to Name
Microsoft.Build.Tasks.Core (6)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
215Name = taskInfo.Name, 232Name = "Execute", 635Name = name,
system.design\stronglytypedresourcebuilder.cs (3)
385resMgr.Name = ResMgrPropertyName; 418culture.Name = CultureInfoPropertyName; 571Name = propertyName,
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (15)
886Name = CONNECT, 1122Name = CONNECT, 2047cmmEventHandler.Name = mei.eventHandler.Trim(); 2066cmmEventHandlerHelper.Name = cmmEventHandler.Name + HELPER; 2217Name = name, 2457Name = className 2569Name = CREATEDELEGATEHELPER, 2717Name = CONTENT_LOADED, 2755Name = XamlTypeMapper.GeneratedInternalTypeHelperClassName 2778Name = "CreateInstance", 2817Name = "GetPropertyValue", 2850Name = "SetPropertyValue", 2889Name = "CreateDelegate", 2942Name = "AddEventHandler", 3477Name = INITIALIZE_COMPONENT,
System.CodeDom (13)
Microsoft\VisualBasic\VBCodeGenerator.cs (6)
1468e.Name = impl + "_" + e.Name; 1595e.Name = impl + "_" + e.Name; 1693e.Name = methodName; 1748e.Name = impl + "_" + e.Name; 1836e.Name = propName; 1857e.Name = propName;
System\CodeDom\CodeConstructor.cs (1)
10Name = ".ctor";
System\CodeDom\CodeMemberField.cs (3)
15Name = name; 21Name = name; 27Name = name;
System\CodeDom\CodeTypeConstructor.cs (1)
10Name = ".cctor";
System\CodeDom\CodeTypeDeclaration.cs (1)
26Name = name;
System\CodeDom\CodeTypeDelegate.cs (1)
22Name = name;
System.Runtime.Serialization.Schema (14)
System\Runtime\Serialization\Schema\CodeExporter.cs (14)
855field.Name = fieldName; 1097enumMember.Name = GetMemberName(stringValue, contractCodeDomInfo); 1707nodeArrayField.Name = ImportGlobals.NodeArrayFieldName; 1718readXmlMethod.Name = "ReadXml"; 1740writeXmlMethod.Name = "WriteXml"; 1762getSchemaMethod.Name = "GetSchema"; 1776getSchemaStaticMethod.Name = ImportGlobals.ExportSchemaMethod; 1839serializationInfoField.Name = ImportGlobals.SerializationInfoFieldName; 1858getObjectDataMethod.Name = ImportGlobals.GetObjectDataMethodName; 1924extensionDataObjectField.Name = ImportGlobals.ExtensionDataObjectFieldName; 1936extensionDataObjectProperty.Name = ImportGlobals.ExtensionDataObjectPropertyName; 1958raisePropertyChangedEventMethod.Name = "RaisePropertyChanged"; 1977propertyChangedEvent.Name = "PropertyChanged"; 1993property.Name = propertyName;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
400docDeclaration.Name = newDecl.Name; 857_documentType.Name = newName; 875members[i].Name = newName;
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
33Name = InitMethodName,
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
522Name = ResourceManagerPropertyName, 553Name = CultureInfoPropertyName, 695Name = propertyName,
108 references to Name
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
238executeMethod.Statements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name))); 630FieldName = field.Name
system.design\stronglytypedresourcebuilder.cs (1)
460var getAssembly = new CodePropertyReferenceExpression(new CodeTypeOfExpression(new CodeTypeReference(srClass.Name)), "Assembly");
PresentationBuildTasks (11)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (10)
2049CodeMethodInvokeExpression cmieOnEvent = new CodeMethodInvokeExpression(null, cmmEventHandler.Name); 2066cmmEventHandlerHelper.Name = cmmEventHandler.Name + HELPER; 2762GenerateXmlComments(ctdClass, ctdClass.Name); 2807GenerateXmlComments(cmmCI, cmmCI.Name); 2840GenerateXmlComments(cmmGPV, cmmGPV.Name); 2873GenerateXmlComments(cmmSPV, cmmSPV.Name); 2932GenerateXmlComments(cmmCD, cmmCD.Name); 2961GenerateXmlComments(cmmAEH, cmmAEH.Name); 3052classFullName = GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3154: GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name);
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
667MarkupCompiler.GenerateXmlComments(_nameField, $"{_nameField.Name} Name Field");
System.CodeDom (41)
Microsoft\CSharp\CSharpCodeGenerator.cs (9)
69private string CurrentTypeName => _currentClass != null ? _currentClass.Name : "<% unknown %>"; 1123string name = e.Name; 1257OutputIdentifier(e.Name); 1275OutputTypeNamePair(e.Type, e.Name); 1388OutputIdentifier(e.Name); 1475if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase)) 1483OutputIdentifier(e.Name); 1920OutputIdentifier(e.Name); 1928OutputIdentifier(e.Name);
Microsoft\VisualBasic\VBCodeGenerator.cs (19)
1463string eventName = e.Name; 1468e.Name = impl + "_" + e.Name; 1473OutputTypeNamePair(e.Type, e.Name); 1516OutputIdentifier(e.Name); 1540OutputTypeNamePair(e.Type, e.Name); 1564&& meth.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase) 1590string methodName = e.Name; 1595e.Name = impl + "_" + e.Name; 1630OutputIdentifier(e.Name); 1724&& prop.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase) 1743string propName = e.Name; 1748e.Name = impl + "_" + e.Name; 1768if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase)) 1784OutputIdentifier(e.Name); 1964OutputIdentifier(e.Name); 1984OutputIdentifier(e.Name); 2003OutputIdentifier(e.Name);
System\CodeDom\Compiler\CodeGenerator.cs (2)
23protected string CurrentTypeName => _currentClass != null ? _currentClass.Name : "<% unknown %>"; 27protected string CurrentMemberName => _currentMember != null ? _currentMember.Name : "<% unknown %>";
System\CodeDom\Compiler\CodeValidator.cs (11)
238ValidateIdentifier(e, nameof(e.Name), e.Name); 290if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase)) 296ValidateIdentifier(e, nameof(e.Name), e.Name); 361ValidateIdentifier(e, nameof(e.Name), e.Name); 378ValidateIdentifier(e, nameof(e.Name), e.Name); 586ValidateIdentifier(e, nameof(e.Name), e.Name);
System.Runtime.Serialization.Schema (15)
System\Runtime\Serialization\Schema\CodeExporter.cs (15)
112AddGlobalTypeName(codeTypeDecl.Name); 726if (string.Equals(typeName, type.Name, StringComparison.OrdinalIgnoreCase)) 751if (string.Equals(typeName, declaration.Name, StringComparison.OrdinalIgnoreCase)) 864if (dataMemberName != property.Name) 1027contractCodeDomInfo.AddMemberName(extensionDataObjectField.Name); 1030contractCodeDomInfo.AddMemberName(extensionDataObjectProperty.Name); 1046contractCodeDomInfo.AddMemberName(memberEvent.Name); 1047contractCodeDomInfo.AddMemberName(raisePropertyChangedEventMethod.Name); 1099if (enumMember.Name != stringValue) 1125if (contractCodeDomInfo.TypeDeclaration.Name != expectedName) 1126throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.InvalidClrNameGeneratedForISerializable, classDataContract.XmlName.Name, classDataContract.XmlName.Namespace, contractCodeDomInfo.TypeDeclaration.Name))); 1376if (memberName == contractCodeDomInfo.TypeDeclaration.Name) 1813baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1963raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 2024ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
System.Windows.Forms.Design (38)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (20)
241failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeNotFound, typeDeclaration.Name, typeReference.BaseType)); 282throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 300throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 311failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeDesignerNotInstalled, typeDeclaration.Name, baseType.FullName)); 315failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeNotDesignable, typeDeclaration.Name, baseType.FullName)); 398if (!string.Equals(docDeclaration.Name, newDecl.Name, caseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) 400docDeclaration.Name = newDecl.Name; 430_ => member.Name, 473string memberName = member is CodeConstructor ? ".ctor" : member.Name; 488if ((string.Equals(newField.Name, docField.Name)) && newField.Attributes == docField.Attributes && TypesEqual(newField.Type, docField.Type)) 652string oldTypeName = _documentType.Name; 672reload |= (_documentType is null || !_documentType.Name.Equals(oldTypeName)); 844SetBaseComponentClassName($"{_documentNamespace.Name}.{_documentType.Name}"); 872if (members[i] is CodeMemberField field && members[i].Name.Equals(oldName) 896if (members[i] is CodeMemberField && members[i].Name.Equals(name)) 1044memberHash.Add(member.Name); 1150if (string.Equals(member.Name, name, StringComparison.OrdinalIgnoreCase)) 1242if (string.Equals(member.Name, name, StringComparison.OrdinalIgnoreCase))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
152if (member is CodeMemberField field && field.Name.Equals(compName))
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
63if (member is CodeMemberMethod method && method.Name.Equals(InitMethodName) && method.Parameters.Count == 0)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (14)
56string baseTypeName = declaration.Name; 81rootObject = manager.CreateInstance(baseType, null, declaration.Name, true); 97if (!string.Equals(member.Name, declaration.Name, compare)) 100_nameTable[member.Name] = member; 104names[member.Name] = GetTypeNameFromCodeTypeReference(manager, member.Type); 126_nameTable[declaration.Name] = rootCtx.Expression; 134FillStatementTable(manager, _statementTable, names, method.Statements, declaration.Name); 149if (!name.Equals(declaration.Name) && _statementTable.TryGetValue(name, out OrderedCodeStatementCollection? statements)) 183if (statements.Name.Equals(declaration.Name)) 500if (!methodMap.TryGetValue(method.Name, out CodeMethodMap? map)) 503methodMap[method.Name] = map; 522if (!methodMap.TryGetValue(rootMethod.Name, out CodeMethodMap? rootMap)) 525methodMap[rootMethod.Name] = rootMap;
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
594new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)), 603new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)),