9 references to MethodName
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
623string? methodName = provider.MethodName;
System.Private.Xml (8)
System\Xml\Serialization\XmlReflectionImporter.cs (8)
494ArgumentNullException.ThrowIfNull(provider.MethodName, nameof(provider.MethodName)); 495if (!CSharpHelpers.IsValidLanguageIndependentIdentifier(provider.MethodName)) 496throw new ArgumentException(SR.Format(SR.XmlGetSchemaMethodName, provider.MethodName), nameof(provider.MethodName)); 498MethodInfo? getMethod = getMethod = type.GetMethod(provider.MethodName, /* BindingFlags.DeclaredOnly | */ BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(XmlSchemaSet) }); 500throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodMissing, provider.MethodName, nameof(XmlSchemaSet), type.FullName)); 503throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName));