Implemented interface member:
property
Name
System.Runtime.InteropServices._MemberInfo.Name
59 overrides of Name
mscorlib (25)
system\reflection\ConstructorInfo.cs (1)
438public override String Name
system\reflection\emit\constructorbuilder.cs (1)
109public override String Name
system\reflection\emit\dynamicmethod.cs (2)
604public override String Name { get { return m_dynMethod.Name; } } 880public override String Name {
system\reflection\emit\enumbuilder.cs (1)
78public override String Name {
system\reflection\emit\fieldbuilder.cs (1)
94public override String Name
system\reflection\emit\generictypeparameterbuilder.cs (1)
59public override String Name { get { return m_type.Name; } }
system\reflection\emit\methodbuilder.cs (1)
524public override String Name
system\reflection\emit\methodbuilderinstantiation.cs (1)
51public override String Name { get { return m_method.Name; } }
system\reflection\emit\propertybuilder.cs (1)
283public override String Name {
system\reflection\emit\symbolmethod.cs (1)
90public override String Name
system\reflection\emit\symboltype.cs (1)
374public override String Name
system\reflection\emit\typebuilder.cs (1)
1045public override String Name
system\reflection\emit\typebuilderinstantiation.cs (1)
76public override String Name { get { return m_type.Name; } }
system\reflection\emit\xxxontypebuilderinstantiation.cs (3)
49public override String Name { get { return m_method.Name; } } 146public override String Name { get { return m_ctor.Name; } } 247public override String Name { get { return m_field.Name; } }
system\reflection\eventinfo.cs (1)
346public override String Name
system\reflection\fieldinfo.cs (2)
699public override String Name 871public override String Name
system\reflection\methodinfo.cs (1)
519public override String Name
system\reflection\propertyinfo.cs (1)
415public override String Name
system\reflection\typedelegator.cs (1)
66public override String Name {
system\rttype.cs (1)
5070public override String Name
system\runtime\serialization\serializationfieldinfo.cs (1)
53public override String Name {
PresentationFramework (1)
src\Framework\MS\Internal\Data\IndexerPropertyInfo.cs (1)
104public override string Name
System (1)
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
136public override string Name {
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
1093public override string Name { get { return _baseReflectionType.Name; } } 1826public override string Name { get { return _info.Name; } } 1889public override string Name { get { return _info.Name; } } 1957public override string Name { get { return _info.Name; } }
System.Core (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
99public override string Name {
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
1093public override string Name { get { return _baseReflectionType.Name; } } 1826public override string Name { get { return _info.Name; } } 1889public override string Name { get { return _info.Name; } } 1957public override string Name { get { return _info.Name; } }
System.Web (1)
Compilation\DelayLoadType.cs (1)
206public override string Name {
System.Workflow.Activities (4)
Designers\StateDesigner.cs (1)
2433public override string Name
Rules\RuleValidation.cs (3)
272public override string Name 384public override string Name 773public override string Name
System.Workflow.ComponentModel (16)
AuthoringOM\Bind.cs (1)
1608public override string Name
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
284public override string Name
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (1)
107public override string Name
AuthoringOM\Compiler\TypeSystem\FieldInfo.cs (1)
80public override string Name
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (2)
91public override string Name 252public override string Name
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (2)
155public override string Name 241public override string Name
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (6)
184public override string Name 859public override string Name 930public override string Name 1033public override string Name 1152public override string Name 1223public override string Name
AuthoringOM\Design\ComponentSerializationService.cs (1)
800public override string Name
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
73public override string Name
System.WorkflowServices (2)
System\Workflow\Activities\ContractMethodInfo.cs (1)
116public override string Name
System\Workflow\Activities\ContractType.cs (1)
134public override string Name
3438 references to Name
ComSvcConfig (14)
ComplusTypeValidator.cs (14)
141ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 143ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 151ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 153ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails)); 194methodNames.Add(method.Name); 255if (methodName == method.Name) 267ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 269ToolConsole.WriteWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 277ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 279ToolConsole.WriteWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails));
Microsoft.Activities.Build (7)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (3)
32buildContext.XamlBuildLogger.LogMessage(MessageImportance.Low, SR.InspectingClass(typeof(BeforeInitializeComponentExtension).Name, className)); 43buildContext.XamlBuildLogger.LogMessage(MessageImportance.Low, SR.GeneratingBeforeInitializeComponent(typeof(BeforeInitializeComponentExtension).Name, className)); 50buildContext.XamlBuildLogger.LogWarning(SR.UnsupportedLanguage(typeof(BeforeInitializeComponentExtension).Name, className));
Microsoft\Activities\Build\Debugger\DebugBuildExtension.cs (2)
32buildContext.XamlBuildLogger.LogMessage(MessageImportance.Low, SR.InspectingClass(typeof(DebugBuildExtension).Name, className)); 95typeof(DebugBuildExtension).Name,
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
116string activityName = activity.GetType().Name;
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
146ValidationError error = new ValidationError(SR.ValidationBuildExtensionExceptionPrefix(typeof(ValidationBuildExtension).Name, activity.DisplayName, e.Message));
mscorlib (193)
microsoft\win32\registrykey.cs (1)
1617throw new ArgumentException(Environment.GetResourceString("Arg_RegSetBadArrType", value.GetType().Name));
system\__filters.cs (2)
119String name = m.Name; 144String name = m.Name;
system\appdomain.cs (2)
165list[i].Method.ReflectedType.FullName+"::"+list[i].Method.Name); 172info.MethodName=list[i].Method.Name;
system\attribute.cs (2)
121property.Name, 180return rtAdd.DeclaringType.GetEvent(ev.Name);
system\collections\generic\comparer.cs (3)
104return this.GetType().Name.GetHashCode(); 128return this.GetType().Name.GetHashCode(); 146return this.GetType().Name.GetHashCode();
system\collections\generic\equalitycomparer.cs (8)
181return this.GetType().Name.GetHashCode(); 240return this.GetType().Name.GetHashCode(); 300return this.GetType().Name.GetHashCode(); 379return this.GetType().Name.GetHashCode(); 419return this.GetType().Name.GetHashCode(); 476return this.GetType().Name.GetHashCode(); 547return (this.GetType().Name.GetHashCode() ^ ((int) (_entropy & 0x7FFFFFFF))); 599return (this.GetType().Name.GetHashCode() ^ ((int) (_entropy & 0x7FFFFFFF)));
system\defaultbinder.cs (4)
992if (cur1.Name == cur2.Name) 1014if (cur1.Name == cur2.Name)
system\delegateserializationholder.cs (1)
43method.ReflectedType.Module.Assembly.FullName, method.ReflectedType.FullName, method.Name);
system\diagnostics\eventing\eventsource.cs (26)
399string name = eventSourceType.Name; 1571return eventSourceType.Name; 3185PropertyInfo p = t.GetProperty(namedArgument.MemberInfo.Name, BindingFlags.Public | BindingFlags.Instance); 3225string.Equals(attributeType.Name, reflectedAttributeType.Name, StringComparison.Ordinal) && 3257if (eventSourceType.Name != "EventSource") 3336manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareKTOC", nestedType.Name)); 3392manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareEventMethods", method.Name, eventAttribute.EventId)); 3420manifest.ManifestError(Environment.GetResourceString("EventSource_NeedPositiveId", method.Name), true); 3423if (method.Name.LastIndexOf('.') >= 0) 3424manifest.ManifestError(Environment.GetResourceString("EventSource_EventMustNotBeExplicitImplementation", method.Name, eventAttribute.EventId)); 3427string eventName = method.Name; 3606manifest.AddOpcode(staticField.Name, value); 3612manifest.AddTask(staticField.Name, value); 3618manifest.AddKeyword(staticField.Name, value); 3630manifest.ManifestError(Environment.GetResourceString("EventSource_EnumKindMismatch", staticField.Name, staticField.FieldType.Name, providerEnumKind)); 3708string evtName = method.Name; 6235templates.Append(" map=\"").Append(type.Name).Append("\""); 6238if (!mapsTab.ContainsKey(type.Name)) 6239mapsTab.Add(type.Name, type); // Remember that we need to dump the type enumeration 6416sb.Append(" <").Append(mapKind).Append(" name=\"").Append(enumType.Name).Append("\">").AppendLine(); 6439WriteMessageAttrib(sb, "map", enumType.Name + "." + staticField.Name, staticField.Name); 6768ManifestError(Environment.GetResourceString("EventSource_UnsupportedEventTypeInManifest", type.Name), true);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
706throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedEnumType", dataType.Name, underlyingType.Name)); 818throw new ArgumentException(Environment.GetResourceString("EventSource_NonCompliantTypeError", dataType.Name));
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo.cs (1)
38this.name = dataType.Name;
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (3)
63: Statics.ShouldOverrideFieldName(propertyInfo.Name) 65: propertyInfo.Name; 95this.name = dataType.Name;
system\diagnostics\stackframe.cs (2)
253sb.Append(method.Name); 270sb.Append(typars[k].Name);
system\diagnostics\stacktrace.cs (3)
673sb.Append(mb.Name); 689sb.Append(typars[k].Name); 708typeName = pi[j].ParameterType.Name;
system\io\stream.cs (1)
1217method.Name == methodName)
system\reflection\__filters.cs (4)
43return cls.Name.StartsWith(str, StringComparison.Ordinal); 46return cls.Name.Equals(str); 63String name = cls.Name; 69return (String.Compare(str,cls.Name, StringComparison.OrdinalIgnoreCase) == 0);
system\reflection\customattribute.cs (7)
385fields[i].Name, CustomAttributeEncoding.Field, InitCustomAttributeType((RuntimeType)fields[i].FieldType)); 388properties[i].Name, CustomAttributeEncoding.Property, InitCustomAttributeType((RuntimeType)properties[i].PropertyType)); 644return String.Format(CultureInfo.CurrentCulture, "{0} = {1}", MemberInfo.Name, TypedValue.ToString(ArgumentType != typeof(object))); 671public string MemberName { get { return MemberInfo.Name; } } 922return String.Format(CultureInfo.CurrentCulture, typed ? "null" : "({0})null", ArgumentType.Name); 939result = String.Format(CultureInfo.CurrentCulture, @"new {0}[{1}] {{ ", elementType.IsEnum ? elementType.FullName : elementType.Name, array.Count); 947return String.Format(CultureInfo.CurrentCulture, typed ? "{0}" : "({1}){0}", Value, ArgumentType.Name);
system\reflection\emit\aqnbuilder.cs (1)
166string name = enclosingType.Name;
system\reflection\emit\assemblybuilder.cs (2)
2132return AddExportedTypeOnDisk(GetNativeHandle(), type.Name, tkResolutionScope, tkTypeDef, type.Attributes); 2147return AddExportedTypeInMemory(GetNativeHandle(), type.Name, tkResolutionScope, tkTypeDef, type.Attributes);
system\reflection\emit\assemblybuilderdata.cs (8)
159m_CABuilders[i].m_con.ReflectedType.Name)); 175m_CABuilders[i].m_con.ReflectedType.Name)); 198m_CABuilders[i].m_con.ReflectedType.Name)); 214m_CABuilders[i].m_con.ReflectedType.Name)); 224m_CABuilders[i].m_con.ReflectedType.Name)); 234m_CABuilders[i].m_con.ReflectedType.Name)); 248m_CABuilders[i].m_con.ReflectedType.Name)); 262m_CABuilders[i].m_con.ReflectedType.Name));
system\reflection\emit\customattributebuilder.cs (2)
229EmitString(writer, namedProperties[i].Name); 281EmitString(writer, namedFields[i].Name);
system\reflection\emit\dynamicilgenerator.cs (1)
46m_methodBuilder.Name,
system\reflection\emit\methodbuilderinstantiation.cs (1)
51public override String Name { get { return m_method.Name; } }
system\reflection\emit\modulebuilder.cs (5)
582mr = GetMemberRefFromSignature(tr, con.Name, sigBytes, length); 761return GetMemberRefFromSignature(tkParent, method.Name, sigBytes, sigLength); 1881return GetArrayMethodToken(declaringType, method.Name, method.CallingConvention, method.ReturnType, tt); 1924mr = GetMemberRefFromSignature(tr, method.Name, sigBytes, length); 2198mr = GetMemberRefFromSignature(tr, field.Name, sigBytes, length);
system\reflection\emit\symboltype.cs (1)
384return baseType.Name + sFormat;
system\reflection\emit\typebuilderinstantiation.cs (1)
76public override String Name { get { return m_type.Name; } }
system\reflection\emit\xxxontypebuilderinstantiation.cs (3)
49public override String Name { get { return m_method.Name; } } 146public override String Name { get { return m_ctor.Name; } } 247public override String Name { get { return m_field.Name; } }
system\reflection\fieldinfo.cs (4)
49f.Name, declaringType.GetGenericTypeDefinition())); 320return FieldType.ToString() + " " + Name; 322return FieldType.FormatTypeName() + " " + Name; 380Name,
system\reflection\methodbase.cs (1)
317StringBuilder sbName = new StringBuilder(Name);
system\reflection\typedelegator.cs (1)
67get{return typeImpl.Name;}
system\reflection\typeinfo.cs (1)
102if (method.Name == name)
system\resources\resourcemanager.cs (1)
431BaseNameField = resourceSource.Name;
system\rttype.cs (2)
2382if (!memberInfo.Name.StartsWith(name, StringComparison.OrdinalIgnoreCase)) 2387if (!memberInfo.Name.StartsWith(name, StringComparison.Ordinal))
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
123AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Task.Id, "Async: " + stateMachine.GetType().Name, 0); 169AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Task.Id, "Async: " + stateMachine.GetType().Name, 0); 986AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, builtTask.Id, "Async: " + stateMachine.GetType().Name, 0);
system\runtime\compilerservices\customconstantattribute.cs (1)
22if (namedArgument.MemberInfo.Name.Equals("Value"))
system\runtime\compilerservices\datetimeconstantattribute.cs (1)
36if (namedArgument.MemberInfo.Name.Equals("Value"))
system\runtime\compilerservices\decimalconstantattribute.cs (1)
58if (namedArgument.MemberInfo.Name.Equals("Value"))
system\runtime\interopservices\registrationservices.cs (10)
1024throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComRegFunction",CurrentMethod.Name,currType.Name)); 1026throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComUnRegFunction",CurrentMethod.Name,currType.Name)); 1037throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComRegFunctionSig",CurrentMethod.Name,currType.Name)); 1039throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComUnRegFunctionSig",CurrentMethod.Name,currType.Name)); 1046throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComRegFunctions",currType.Name)); 1048throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComUnRegFunctions",currType.Name));
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (6)
99FieldInfo DelegateField = SinkHelperClass.GetField( "m_" + SrcItfMethod.Name + "Delegate" ); 100Contract.Assert(DelegateField != null, "Unable to find the field m_" + SrcItfMethod.Name + "Delegate on the sink helper"); 134"add_" + SrcItfMethod.Name, 242FieldInfo DelegateField = SinkHelperClass.GetField( "m_" + SrcItfMethod.Name + "Delegate" ); 243Contract.Assert(DelegateField != null, "Unable to find the field m_" + SrcItfMethod.Name + "Delegate on the sink helper"); 294"remove_" + SrcItfMethod.Name,
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (6)
35strFullName += m_InputType.Name + GeneratedTypeNamePostfix; 67MethodInfo AddMeth = m_EventItfType.GetMethod( "add_" + aMethods[cMethods].Name ); 74"m_" + aMethods[cMethods].Name + "Delegate", 106MethodBuilder Meth = OutputTypeBuilder.DefineMethod(Method.Name, 143MethodBuilder Meth = OutputTypeBuilder.DefineMethod( Method.Name, 258Contract.Assert(DefaultBaseClsCons != null, "Unable to find the constructor for class " + m_InputType.Name);
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (9)
377throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, typeof(T).MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH); 391Exception e = new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueArrayCoersion", this.Type, typeof(T).MakeArrayType().Name, i, elementCastException.Message), elementCastException); 414throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 437throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 440throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 443throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueCoersion", type, value, typeof(T).Name), __HResults.DISP_E_OVERFLOW); 483throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 518throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedBoxedType.Name), __HResults.TYPE_E_TYPEMISMATCH); 540throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedArrayElementType.MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH);
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
47return m_property.Name;
system\runtime\remoting\message.cs (1)
524mb.DeclaringType.FullName, mb.Name,
system\runtime\remoting\remotingattributes.cs (5)
323_methodName = mb.Name; 684return t.Name; 716((MemberInfo)ReflectInfo).Name; // This will be the method name. 758_responseXmlElementName = ((MemberInfo)ReflectInfo).Name + "Response"; 847_xmlElementName = ((FieldInfo)ReflectInfo).Name;
system\runtime\remoting\remotingservices.cs (4)
2053String beginName = "Begin" + method.Name; 2054String endName = "End" + method.Name; 2094if (mi.Name.Equals(beginName) && 2102if (mi.Name.Equals(endName) &&
system\runtime\remoting\soap.cs (4)
211map.AddXmlAttribute(field.FieldType, field.Name, xmlName, xmlNamespace); 213map.AddXmlElement(field.FieldType, field.Name, xmlName, xmlNamespace); 492return actualTypeName.Equals(typeName) && mb.Name.Equals(methodName); 534methodName = mb.Name;
system\runtime\serialization\formatters\binary\binaryconverter.cs (2)
208SerTrace.Log("Converter", "ToType Exit ", (((object)arrayTypeA[(int)code] == null)?"null ":arrayTypeA[(int)code].Name)); 270SerTrace.Log("Converter", "ToType Exit ", (((object)typeA[(int)code] == null)?"null ":typeA[(int)code].Name));
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (6)
178SerTrace.Log( this, objectInfoId," Constructor 1 memberInfos data ",cache.memberInfos[i].Name," ",memberData[i]); 354cache.memberNames[i] = cache.memberInfos[i].Name; 639cache.memberNames[i] = cache.memberInfos[i].Name; 758SerTrace.Log( this,objectInfoId," ", objectType," PopulateObjectMembers ",memberInfos[i].Name," ",memberData[i]); 837if (!memberMissing && inMemberNames[i].Equals(cache.memberInfos[i].Name)) 845if (cache.memberInfos[i].Name.Equals(inMemberNames[j]))
system\runtime\serialization\formatters\sertrace.cs (2)
90messages[0] = (messages[0].GetType()).Name+" "; 139messages[0] = (messages[0].GetType()).Name+" ";
system\runtime\serialization\formatterservices.cs (1)
366members[i].Name, " with member type: ", ((FieldInfo)members[i]).FieldType);
system\runtime\serialization\objectclonehelper.cs (1)
152string fieldName = mi[index].Name;
system\runtime\serialization\objectmanager.cs (4)
478sb.Append("."+intermediateFields[i].Name); 480sb.Append("."+memberToFix.Name+"="+value); 590BCLDebug.Trace("SER", "[ObjectManager.CompleteObject]Fixing member: ", tempMember.Name, " in object ", holder.m_id, 1028BCLDebug.Trace("SER", "RecordFixup. ObjectToBeFixed: ", objectToBeFixed, "\tMember: ", member.Name, "\tRequiredObject: ", objectRequired);
system\runtime\serialization\serializationfieldinfo.cs (1)
47m_serializationName = String.Concat(namePrefix, FakeNameSeparatorString, m_field.Name);
system\runtime\versioning\resourceattributes.cs (1)
149safeName.Append(type.Name);
system\security\codeaccesspermission.cs (2)
92Contract.Assert(new StackFrame().GetMethod().Name.Equals("Demand"), "This method needs to be named Demand"); 120Contract.Assert(new StackFrame().GetMethod().Name.Equals("Assert"), "This method needs to be named Assert");
system\security\policy\hash.cs (1)
506hashElement.AddAttribute("algorithm", hashValue.Key.Name);
system\security\policy\policylevel.cs (3)
1307if (!classes.ContainsValue(type.Name)) { 1308classes.Add(className, type.Name); 1309return type.Name;
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
537if (m_pair.CompletionRequested) throw new InvalidOperationException(GetType().Name);
system\threading\Tasks\FutureFactory.cs (4)
829AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, promise.Id, "TaskFactory.FromAsync: " + beginMethod.Method.Name, 0); 966AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, promise.Id, "TaskFactory.FromAsync: " + beginMethod.Method.Name, 0); 1111AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, promise.Id, "TaskFactory.FromAsync: " + beginMethod.Method.Name, 0); 1263AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, promise.Id, "TaskFactory.FromAsync: " + beginMethod.Method.Name, 0);
system\threading\Tasks\Task.cs (1)
1939AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Id, "Task: "+((Delegate)m_action).Method.Name, 0);
system\threading\Tasks\TaskContinuation.cs (1)
311AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, m_task.Id, "Task.ContinueWith: " + ((Delegate)task.m_action).Method.Name, 0);
system\type.cs (2)
1431names[i] = flds[i].Name; 1761return "Type: " + Name;
PresentationBuildTasks (64)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
94"Get" + methodInfo.Name.Substring("Set".Length),
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (8)
1781CodeFieldReferenceExpression cfre = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 1800CodeMethodInvokeExpression cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 1867CodeFieldReferenceExpression cfreEvent = new CodeFieldReferenceExpression(ctreEvent, fiEvent.Name); 2303string genericName = t.Namespace + DOT + t.Name; 2474string baseName = baseClass != null ? baseClass.Name : baseClassName; 2912string rootClassName = elementType != null ? elementType.Name : baseClassFullName.Substring(baseClassFullName.LastIndexOf(DOT, StringComparison.Ordinal)+1); 3064CodePropertyReferenceExpression cprePropSet = new CodePropertyReferenceExpression(ctreTag, memberInfo.Name); 3276get { return _elementType != null ? _elementType.Name : _localElementFullName.Substring(_localElementFullName.LastIndexOf(DOT, StringComparison.Ordinal) + 1); }
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (2)
149memberInfo.ReflectedType.Name, 170memberInfo.Name.Equals(STARTUPURI) &&
Framework\System\Windows\Markup\BamlMapTable.cs (2)
146int cmp = String.CompareOrdinal(typeShortName, probeType.Name); 183return GetKnownTypeIdFromName(type.Assembly.FullName, type.Namespace, type.Name);
Framework\System\Windows\Markup\BamlRecords.cs (1)
2702throw new XamlParseException(SR.Get(SRID.ParserBadString, Value, ValueType.Name));
Framework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1340ThrowException(SRID.ParserBadConstructorParams, data.TargetType.Name,
Framework\System\Windows\Markup\ParserContext.cs (1)
885string propertyName = property.Name;
Framework\System\Windows\Markup\StyleXamlParser.cs (5)
431target = targetType.Name; 459pi.Name, 470pi.Name, 652xamlElementStartNode.ElementType.Name, 663xamlElementStartNode.ElementType.Name,
Framework\System\Windows\Markup\TemplateXamlParser.cs (3)
516pi.Name, 527pi.Name, 844(elementType == null ? "Unknown tag" : elementType.Name),
Framework\System\Windows\Markup\XamlReaderHelper.cs (19)
884string parentName = declaringType != null ? declaringType.Name : string.Empty; 2324ParserContext.XamlTypeMapper.GetXmlLangProperty(namespaceURI, elementType.Name); 2332WriteProperty(xmlLangProperty.Name, xmlLangProperty, 2927unknownTagName == null ? parentType.Name : unknownTagName, 2993string parentName = parentType != null ? parentType.Name : string.Empty; 3026ThrowException(SRID.ParserNoNameOnType, parentType.Name); 3219"Set" + methodInfo.Name.Substring("Get".Length), 3241ThrowException(SRID.ParserCantSetAttribute, "property", declaringType.Name + "." + attribLocalName, "set"); 3244string parentName = parentType != null ? parentType.Name : string.Empty; 3301ThrowException(SRID.ParserNoNameOnType, parentType.Name); 3480ThrowException(SRID.ParserNoNameUnderDefinitionScopeType, attributeValue, elementName, _definitionScopeType.Name); 3527null != methodInfo.DeclaringType.GetMethod("Set" + methodInfo.Name.Substring("Get".Length), 3709XamlTypeMapper.GetTypeAndSerializer(namespaceURI, propertyType.Name, dynamicObject); 4353FirstTagName = ((Type)GrandParentContext.ContextData).Name + "." + GrandParentContext.ChildTagLocalName; 4358FirstTagName = ParentContext.ContextDataType.Name; 4363CurrentContext.ContextDataType.Name /* Child */)); 4570bool resolved = GetPropertyComplex(elementType.Name, contentPropertyName, namespaceUri, 4607ThrowException(SRID.ParserCantSetContentProperty, contentPropertyName, elementType.Name); 6582textContext.ContextDataType.Name /* Parent */,
Framework\System\Windows\Markup\XamlTypeMapper.cs (17)
869string fullName = owner.IsGenericType ? owner.Namespace + "." + owner.Name : owner.FullName; 1388ThrowException(SRID.ParserCantSetAttribute, "bubbling event", objectType.Name + "." + localName, "Add Handler method"); 1412ThrowException(SRID.ParserEventDelegateTypeNotAccessible, ei.EventHandlerType.FullName, objectType.Name + "." + localName); 1423ThrowException(SRID.ParserCantSetAttribute, "event", objectType.Name + "." + localName, "add"); 1472ThrowException(SRID.ParserCantSetAttribute, "attached property", objectType.Name + "." + localName, "Set method"); 1492String.Format(CultureInfo.CurrentCulture, "{0}.{1}", objectType.Name, localName), 1493owner.Name); 1551ThrowException(SRID.ParserCantSetAttribute, "bubbling event", owner.Name + "." + localName, "Add Handler method"); 1572ThrowException(SRID.ParserEventDelegateTypeNotAccessible, ei.EventHandlerType.FullName, owner.Name + "." + localName); 1584ThrowException(SRID.ParserCantSetAttribute, "event", owner.Name + "." + localName, "add"); 1632ThrowException(SRID.ParserCantSetAttribute, "attached property", owner.Name + "." + localName, "Set method"); 2044if (infos[i].Name == localName) 2190return propertyInfo.Name; 2197return methodInfo.Name.Substring("Get".Length); 2446ThrowException(SRID.ParserStaticMemberNotAllowed, memberName, targetType.Name); 2453ThrowException(SRID.ParserInvalidStaticMember, memberName, targetType.Name); 2652ThrowException(SRID.ParserPublicType, objectType.Name);
Framework\System\Windows\SystemResourceKey.cs (1)
382srkField = targetType.Name + srkField;
Shared\System\Windows\Markup\ReflectionHelper.cs (3)
316throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsLow, attrType.Name)); 329throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsLow, attrType.Name)); 334throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsHigh, attrType.Name));
PresentationCore (86)
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (1)
192Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name));
Core\CSharp\System\Windows\FreezableCollection.cs (4)
543throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 689throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "T")); 876throw new InvalidOperationException(SR.Get(SRID.Freezable_CloneInvalidType, typeof(T).Name));
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (3)
440throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 532throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration"));
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
601timeline.GetType().Name));
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (3)
448throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 540throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline"));
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (3)
447throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 539throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect"));
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
363throw new InvalidOperationException(SR.Get(SRID.Effect_ShaderConstantType, dp.PropertyType.Name));
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "double"));
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing"));
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform"));
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry"));
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop"));
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "int"));
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (3)
450throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 542throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure"));
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment"));
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point"));
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect"));
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform"));
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector"));
Core\CSharp\System\Windows\Media\Visual.cs (2)
2023hitTestParameters.GetType().Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (3)
445throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 537throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D"));
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material"));
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D"));
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (3)
410throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 486throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D"));
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D"));
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (3)
410throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 486throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D"));
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (4)
103throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name)); 116throw new System.InvalidOperationException(SR.Get(SRID.AddText_Invalid, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (2)
517throw new NotSupportedException(SR.Get(SRID.HitTest_Invalid, typeof(GeometryHitTestParameters).Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Visual3D.cs (2)
681hitTestParameters.GetType().Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Visual3DCollection.cs (2)
485throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D"));
Core\CSharp\System\Windows\RoutedEvent.cs (1)
108return string.Format(CultureInfo.InvariantCulture, "{0}.{1}", _ownerType.Name, _name );
Core\CSharp\System\Windows\RoutedEventArgs.cs (1)
150RoutedEvent.OwnerType.Name,
Shared\System\Windows\Ink\KnownIds.cs (2)
308if ( id == (Guid)typeof(KnownIds).InvokeMember(info.Name, 317return info.Name;
PresentationFramework (309)
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (1)
91m.Name, bSamePf);
src\Framework\MS\Internal\Controls\ConnectionPointCookie.cs (4)
60ex = new ArgumentException(SR.Get(SRID.AxNoEventInterface, eventInterface.Name)); 66ex = new InvalidCastException(SR.Get(SRID.AxNoSinkImplementation, eventInterface.Name)); 76ex = new InvalidOperationException(SR.Get(SRID.AxNoSinkAdvise, eventInterface.Name, hr)); 95throw new ArgumentException(SR.Get(SRID.AxNoConnectionPoint, eventInterface.Name));
src\Framework\MS\Internal\Data\BindingCollection.cs (1)
127throw new NotSupportedException(SR.Get(SRID.BindingCollectionContainsNonBinding, binding.GetType().Name));
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (3)
492svi.propertyName, type.Name, 506svi.propertyName, type.Name, 812return mi.Name;
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
585type.Name,
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (9)
131(pi != null) ? pi.Name : 1103newType.Name, 1130newType.Name, 1234newType.Name, 1335if (pi.Name == name && IsIndexedProperty(pi)) 1623throw new InvalidOperationException(SR.Get(SRID.CannotWriteToReadOnly, item.GetType(), pi.Name)); 1716propertyName = pi.Name; 1717typeName = pi.DeclaringType.Name; 1764(pi != null) ? pi.Name : null;
src\Framework\MS\Internal\Data\ViewManager.cs (2)
588throw new ArgumentException(SR.Get(SRID.CollectionView_WrongType, collectionViewType.Name)); 602collectionViewType.Name, collection.GetType()), e);
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
552node.GetType().Name, node.Name); 561nodeList.GetType().Name, AvTrace.GetHashCodeHelper(nodeList), nodeList.Count);
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (2)
476throw new ArgumentException(SR.Get(SRID.TableCollectionElementTypeExpected, typeof(TItem).Name), "value"); 533throw new ArgumentException(SR.Get(SRID.TableCollectionElementTypeExpected, typeof(TItem).Name), "value");
src\Framework\MS\Internal\Helper.cs (8)
647System.Xaml.XamlMember member = xt.GetMember(propertyInfo.Name); 693markupExtension.GetType().Name, 694targetMember.Name, 695targetType.Name)); 714markupExtension.GetType().Name, 715targetProperty.GetType().Name)); 738markupExtension.GetType().Name, 739targetType.Name));
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (1)
149throw new MissingMethodException(GetType().Name, name);
src\Framework\MS\Internal\LayoutDump.cs (2)
210writer.WriteStartElement(visual.GetType().Name); 247writer.WriteStartElement(element.GetType().Name);
src\Framework\MS\Internal\Markup\StaticExtension.cs (2)
54value = SystemResourceKey.GetSystemResourceKey(MemberType.Name + "." + Member); 94throw new ArgumentException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1068throw new InvalidOperationException(SR.Get(SRID.TextSchema_TextIsNotAllowedInThisContext, Element.GetType().Name));
src\Framework\MS\Internal\TraceData.cs (12)
110traceBuilder.Append(o.GetType().Name); 198traceBuilder.AppendFormat("'{0}' (Name='{1}')", fe.GetType().Name, fe.Name); 202traceBuilder.AppendFormat("'{0}' (HashCode={1})", o.GetType().Name, o.GetHashCode()); 237traceBuilder.AppendFormat("target property is '{0}' (type '{1}')", targetProperty.Name, targetProperty.PropertyType.Name); 270return Format("{0} (hash={1} Count={2})", type.Name, AvTrace.GetHashCodeHelper(o), ic.Count); 272return Format("{0} (hash={1})", type.Name, AvTrace.GetHashCodeHelper(o)); 278string name = type.Name; 291return Format("{0}({1})", dp.GetType().Name, dp.Name); 295return Format("{0}({1})", pi.GetType().Name, pi.Name); 299return Format("{0}({1})", pd.GetType().Name, pd.Name); 309return Format("{0} ({1})", ex.GetType().Name, AvTrace.AntiFormat(ex.Message));
src\Framework\MS\Internal\Utility\TraceLog.cs (1)
66o.GetType().Name, o.GetHashCode());
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
179return this.Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (1)
60return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
76return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
50return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridDetailsPresenterAutomationPeer.cs (1)
33return this.Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
50return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridRowHeaderAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
114return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
43return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\UserControlAutomationPeer.cs (1)
20return Owner.GetType().Name;
src\Framework\System\Windows\ColorConvertedBitmapExtension.cs (1)
101throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IUriContext" ));
src\Framework\System\Windows\Condition.cs (1)
143value.GetType().Name));
src\Framework\System\Windows\Controls\GroupItem.cs (2)
200throw new InvalidOperationException(SR.Get(SRID.StyleForWrongType, style.TargetType.Name, this.GetType().Name));
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
121String.Format(CultureInfo.InvariantCulture, "ItemContainerGenerator for {0} {1} - {2} items", Host.GetType().Name, label, _itemsGenerated));
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3448throw new InvalidOperationException(SR.Get(SRID.StyleForWrongType, style.TargetType.Name, container.GetType().Name));
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
168throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
src\Framework\System\Windows\Controls\MenuItem.cs (3)
2167throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(MenuItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
157string.Format(CultureInfo.InvariantCulture, SR.Get(SRID.DatePickerTextBox_TemplatePartIsOfIncorrectType), partName, typeof(T).Name));
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (3)
518throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(MenuItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (3)
128throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(StatusBarItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\TextBlock.cs (2)
167throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parentType.Name, valueType.Name));
src\Framework\System\Windows\Controls\UIElementCollection.cs (1)
402throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement"));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
6455string name = (container == null) ? "null" : container.GetType().Name;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
892throw new System.ObjectDisposedException(GetType().Name);
src\Framework\System\Windows\ControlTemplate.cs (3)
74throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name)); 145throw new ArgumentException(SR.Get(SRID.InvalidControlTemplateTargetType, targetType.Name));
src\Framework\System\Windows\Data\BindingExpression.cs (2)
1656string name = String.IsNullOrEmpty(stringFormat) ? converter.GetType().Name : "StringFormat"; 1672converter.GetType().Name,
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
2140dp.PropertyType.Name), 2166dp.PropertyType.Name),
src\Framework\System\Windows\Data\CollectionView.cs (3)
1516list.Add(new ItemPropertyInfo(pi.Name, pi.PropertyType, pi)); 1537if (interfaceType.Name == IEnumerableT) 2194static readonly string IEnumerableT = typeof(IEnumerable<>).Name;
src\Framework\System\Windows\Data\MultiBinding.cs (1)
66throw new ArgumentException(SR.Get(SRID.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
src\Framework\System\Windows\Data\MultiBindingExpression.cs (3)
538Converter.GetType().Name, 565Converter.GetType().Name, count, values.Length, 596Converter.GetType().Name,
src\Framework\System\Windows\Data\ObjectDataProvider.cs (4)
496e = new InvalidOperationException(SR.Get(SRID.ObjectDataProviderNonCLSException, _objectType.Name)); 506TraceData.Trace(TraceEventType.Error, TraceData.ObjDPCreateFailed, _objectType.Name, error, e); 582e = new InvalidOperationException(SR.Get(SRID.ObjectDataProviderNonCLSExceptionInvoke, MethodName, _objectType.Name)); 592TraceData.Trace(TraceEventType.Error, TraceData.ObjDPInvokeFailed, MethodName, _objectType.Name, error, e);
src\Framework\System\Windows\Data\PriorityBinding.cs (1)
61throw new ArgumentException(SR.Get(SRID.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
src\Framework\System\Windows\Data\XmlNamespaceMapping.cs (6)
50throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "Prefix", this.GetType().Name)); 52throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "Prefix", this.GetType().Name)); 69throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "Uri", this.GetType().Name)); 71throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "Uri", this.GetType().Name)); 147throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "Prefix", this.GetType().Name)); 151throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "Uri", this.GetType().Name));
src\Framework\System\Windows\DataTemplate.cs (1)
197throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
src\Framework\System\Windows\DataTrigger.cs (1)
82value.GetType().Name));
src\Framework\System\Windows\DeferrableContentConverter.cs (2)
97throw new InvalidOperationException(SR.Get(SRID.DeferringLoaderNoContext, typeof(DeferrableContentConverter).Name, typeof(T).Name));
src\Framework\System\Windows\Documents\FlowDocument.cs (3)
1654throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1660throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
src\Framework\System\Windows\Documents\InlineCollection.cs (2)
170throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name));
src\Framework\System\Windows\Documents\Span.cs (2)
133throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name)); 137throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name));
src\Framework\System\Windows\Documents\Speller.cs (7)
915"Start offset = " + start.Offset + " parent = " + start.ParentType.Name + "\n" + 916"ContextStart offset = " + contextStart.Offset + " parent = " + contextStart.ParentType.Name + "\n" + 917"ContentStart offset = " + contentStart.Offset + " parent = " + contentStart.ParentType.Name + "\n" + 918"ContentEnd offset = " + contentEnd.Offset + " parent = " + contentEnd.ParentType.Name + "\n" + 919"ContextEnd offset = " + contextEnd.Offset + " parent = " + contextEnd.ParentType.Name + "\n" + 920"Timeout offset = " + status.TimeoutPosition.Offset + " parent = " + status.TimeoutPosition.ParentType.Name + "\n" + 922"Document = " + start.TextContainer.Parent.GetType().Name + "\n";
src\Framework\System\Windows\Documents\TableColumnCollection.cs (1)
284throw new ArgumentException(SR.Get(SRID.TableCollectionElementTypeExpected, typeof(TableColumn).Name), "value");
src\Framework\System\windows\Documents\TextEditor.cs (2)
362SR.Get(SRID.TextEditorCanNotRegisterCommandHandler, ((Type)_registeredEditingTypes[i]).Name, controlType.Name));
src\Framework\System\Windows\Documents\TextElement.cs (11)
865throw new ArgumentException(SR.Get(SRID.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 877throw new ArgumentException(SR.Get(SRID.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 893throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 900throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 944throw new InvalidOperationException(SR.Get(SRID.TextSchema_TextIsNotAllowed, this.GetType().Name));
src\Framework\System\Windows\Documents\TextElementCollection.cs (10)
260throw new InvalidOperationException(SR.Get(SRID.TextElementCollection_PreviousSiblingDoesNotBelongToThisCollection, previousSibling.GetType().Name)); 265throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 305throw new InvalidOperationException(SR.Get(SRID.TextElementCollection_NextSiblingDoesNotBelongToThisCollection, nextSibling.GetType().Name)); 310throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 356throw new ArgumentException(SR.Get(SRID.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value"); 422throw new ArgumentException(SR.Get(SRID.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value"); 480throw new ArgumentException(SR.Get(SRID.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value"); 490throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 594throw new ArgumentException(SR.Get(SRID.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value");
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1451throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, ancestor.GetType().Name));
src\Framework\System\Windows\Documents\TextRange.cs (1)
805throw new ArgumentException(SR.Get(SRID.TextEditorTypeOfParameterIsNotAppropriateForFormattingProperty, value == null ? "null" : value.GetType().Name, formattingProperty.Name), "value");
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (15)
207xmlWriter.WriteStartElement(typeof(Run).Name); 586xmlWriter.WriteStartElement(prefix, elementTypeStandardized.Name, nameSpace); 590xmlWriter.WriteStartElement(elementTypeStandardized.Name); 629string complexPropertyName = table.GetType().Name + ".Columns"; 684xmlWriter.WriteStartElement(rootType.Name, xmlNamespace); 1125propertyName = elementType.Name + "." + property.Name; 1135propertyName = property.OwnerType.Name + "." + property.Name; 1148xmlWriter.WriteStartElement(elementTypeStandardized.Name); 1195xmlWriter.WriteStartElement(elementTypeStandardized.Name); 1218xmlWriter.WriteStartElement(typeof(Image).Name + "." + Image.SourceProperty.Name); 1219xmlWriter.WriteStartElement(typeof(System.Windows.Media.Imaging.BitmapImage).Name); 1546Invariant.Assert(itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Forward).GetType()), "The first pasted fragment item is expected to be a " + itemType.Name); 1547Invariant.Assert(itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Backward).GetType()), "The last pasted fragment item is expected to be a " + itemType.Name); 1553Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), "An element preceding a pasted fragment is expected to be a " + itemType.Name); 1555Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name);
src\Framework\System\Windows\Documents\TextSchema.cs (6)
117throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, child.GetType().Name)); 148throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name)); 180throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name));
src\Framework\System\Windows\Documents\ValidationHelper.cs (3)
118throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 126throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
src\Framework\System\Windows\EventTrigger.cs (1)
60throw new ArgumentException(SR.Get(SRID.EventTriggerBadAction, value.GetType().Name));
src\Framework\System\Windows\FrameworkContentElement.cs (2)
607string TypeAndName = "[" + GetType().Name + "]" + dp.Name; 729PerfService.GetPerfElementID(this), GetType().Name, GetValue(dp));
src\Framework\System\Windows\FrameworkElement.cs (2)
2004string TypeAndName = String.Format(CultureInfo.InvariantCulture, "[{0}]{1}({2})",GetType().Name,dp.Name,base.GetHashCode()); 2091PerfService.GetPerfElementID(this), GetType().Name, GetValue(dp));
src\Framework\System\Windows\FrameworkElementFactory.cs (8)
96throw new ArgumentException(SR.Get(SRID.MustBeFrameworkOr3DDerived, value.Name)); 241throw new ArgumentException(SR.Get(SRID.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 586throw new InvalidOperationException(SR.Get(SRID.TypeMustImplementIAddChild, _type.Name)); 684parent.GetType().Name)); 941parent.GetType().Name)); 987frameworkObject.DO.GetType().Name)); 1147parent.GetType().Name)); 1155type.Name));
src\Framework\System\Windows\FrameworkTemplate.cs (2)
390typeof(FrameworkElement).Name, templateRoot.Type.Name));
src\Framework\System\Windows\Input\Command\CommandValueSerializer.cs (5)
46string typeName = ownerType.Name; 85throw new InvalidOperationException(SR.Get(SRID.ValueSerializerContextUnavailable, this.GetType().Name )); 92throw new InvalidOperationException(SR.Get(SRID.TypeValueSerializerUnavailable, this.GetType().Name )); 142throw new InvalidOperationException(SR.Get(SRID.ValueSerializerContextUnavailable, this.GetType().Name )); 149throw new InvalidOperationException(SR.Get(SRID.TypeValueSerializerUnavailable, this.GetType().Name ));
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
774throw new TargetInvocationException(SR.Get(SRID.AXNohWnd, GetType().Name), e);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
226xamlType = CreateKnownBamlType(type.Name, true, true); 231xamlType = helper.GetKnownXamlType(type.Name);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
37xType = CreateKnownBamlType(type.Name, false, _useV3Rules);
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
103if (method.Name.Contains("RegisterName"))
src\Framework\System\Windows\Markup\BamlMapTable.cs (3)
146int cmp = String.CompareOrdinal(typeShortName, probeType.Name); 183return GetKnownTypeIdFromName(type.Assembly.FullName, type.Namespace, type.Name); 611ThrowException(SRID.ParserNoTypeConv, propType.Name);
src\Framework\System\Windows\Markup\BamlReader.cs (3)
1035if (infos[i].Name == attrInfo.Name) 1065info.Value = declaringType.Name + "." + _propertyDP.Name; 2413typeName = dp.OwnerType.Name;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (34)
1381ThrowException(SRID.ParserCantSetContentProperty, propertyDefinition.Name, propertyDefinition.PropertyInfo.ReflectedType.Name); 1590ThrowExceptionWithLine(SR.Get(SRID.ParserFailedToCreateFromConstructor, info.DeclaringType.Name), e); 1608ThrowException(SRID.ParserBadConstructorParams, elementType.Name, paramCount.ToString(CultureInfo.CurrentCulture)); 2595propertyDefinition.PropertyInfo.Name, 2621propertyDefinition.PropertyInfo.Name, 2638propertyDefinition.AttachedPropertySetter.Name, 2649propertyDefinition.AttachedPropertySetter.Name, 2714ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.Name, valueType.Name), e); 2878ThrowException(SRID.ParserCantCreateDelegate, reid.HandlerType.Name, attribValue); 2912ThrowException(SRID.ParserCantCreateDelegate, ei.EventHandlerType.Name, attribValue); 2924ThrowException(SRID.ParserCantSetAttribute, "event", ei.Name, "add"); 3808((Type)propertyType.GetGenericArguments()[0]).Name, 3863value = OptionallyMakeNullable(propertyInfo.PropertyType, value, propertyInfo.Name); 3872value = OptionallyMakeNullable(methodInfo.GetParameters()[1].ParameterType, value, methodInfo.Name.Substring("Set".Length)); 3923ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, parentObject.GetType().FullName, memberInfo.Name, o), e); 4062propertyName, attribValue, propertyType.Name); 5032pi.Name, 5044ThrowException(SRID.ParserCantSetContentProperty, pi.Name, pi.ReflectedType.Name); 5052pi.Name, 5075value.GetType().Name, 5076container.GetType().Name), 5222return attribInfo.OwnerType.Name + "." + attribInfo.Name; 5229return pi.DeclaringType.Name + "." + pi.Name; 5300ThrowException(SRID.ParserNotMarkedPublic, type.Name); 5307ThrowException(SRID.ParserNotAllowedInternalType, type.Name); 5346ThrowException(SRID.ParserNotAllowedInternalType, type.Name); 5380type.Name, attribInfo.DP.Name); 5384ThrowExceptionWithLine(SR.Get(SRID.ParserNoDefaultConstructor, type.Name), e ); 5399ThrowExceptionWithLine( SR.Get(SRID.ParserErrorCreatingInstance, type.Name, type.Assembly.FullName), e); 5934return this.PropertyInfo.Name; 5938return this.AttachedPropertySetter.Name.Substring("Set".Length); 5942return this.AttachedPropertyGetter.Name.Substring("Get".Length);
src\Framework\System\Windows\Markup\BamlRecords.cs (1)
2702throw new XamlParseException(SR.Get(SRID.ParserBadString, Value, ValueType.Name));
src\Framework\System\Windows\Markup\ParserContext.cs (1)
885string propertyName = property.Name;
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (8)
490string name = item.ObjectType.Name; 583string localName = dependencyProperty.OwnerType.Name + "." + dependencyProperty.Name; 718WritePropertyStart(scope.GetPrefixOf(dpUri), property.DependencyProperty.OwnerType.Name + "." + property.DependencyProperty.Name, dpUri); 723WritePropertyStart(prefix, item.ObjectType.Name + "." + property.PropertyDescriptor.Name, uri); 849_writer.WriteStartElement(prefix, item.ObjectType.Name + "." + property.PropertyDescriptor.Name, uri); 1056string name = tagType.Name; 1550return type.Name; 1552return prefix + ":" + type.Name;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (13)
869string fullName = owner.IsGenericType ? owner.Namespace + "." + owner.Name : owner.FullName; 1412ThrowException(SRID.ParserEventDelegateTypeNotAccessible, ei.EventHandlerType.FullName, objectType.Name + "." + localName); 1435ThrowException(SRID.ParserCantSetAttribute, "event", objectType.Name + "." + localName, "add"); 1492String.Format(CultureInfo.CurrentCulture, "{0}.{1}", objectType.Name, localName), 1493owner.Name); 1572ThrowException(SRID.ParserEventDelegateTypeNotAccessible, ei.EventHandlerType.FullName, owner.Name + "." + localName); 1596ThrowException(SRID.ParserCantSetAttribute, "event", owner.Name + "." + localName, "add"); 2044if (infos[i].Name == localName) 2190return propertyInfo.Name; 2197return methodInfo.Name.Substring("Get".Length); 2453ThrowException(SRID.ParserInvalidStaticMember, memberName, targetType.Name); 2652ThrowException(SRID.ParserPublicType, objectType.Name); 3733ThrowException(SRID.ParserNoTypeConv, type.Name);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
777return ((PropertyInfo)propertyAccessor).Name;
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
4245Debug.Fail("Unhandled scenario: PageFunction returning to " + parentEntry.GetType().Name);
src\Framework\System\Windows\PropertyPath.cs (2)
647throw new InvalidOperationException(SR.Get(SRID.PropertyPathNoProperty, ownerType.Name, propertyName)); 955return pi.Name;
src\Framework\System\Windows\PropertyPathConverter.cs (2)
235name = pi.Name; 268builder.Append(type.Name);
src\Framework\System\Windows\Setter.cs (2)
81throw new ArgumentException(SR.Get(SRID.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 126value.GetType().Name));
src\Framework\System\Windows\Standard\ErrorCodes.cs (2)
364return publicStaticField.Name; 379return "HRESULT_FROM_WIN32(" + publicStaticField.Name + ")";
src\Framework\System\Windows\Standard\Verify.cs (1)
271if (type.GetInterface(interfaceType.Name) == null)
src\Framework\System\Windows\StaticResourceExtension.cs (2)
212throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IXamlSchemaContextProvider")); 218throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IAmbientProvider"));
src\Framework\System\Windows\Style.cs (5)
191throw new ArgumentException(SR.Get(SRID.MustBeFrameworkDerived, value.Name)); 497this.TargetType.Name, 498elementType.Name)); 528throw new InvalidOperationException(SR.Get(SRID.MustBaseOnStyleOfABaseType, _targetType.Name)); 827throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInStyle, trigger.GetType().Name));
src\Framework\System\Windows\StyleHelper.cs (4)
993throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 1010throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 1838String.Format(System.Globalization.CultureInfo.InvariantCulture, "Style.InstantiateSubTree for {0} {1}", container.GetType().Name, label)); 1878String.Format(System.Globalization.CultureInfo.InvariantCulture, "Style.InstantiateSubTree for {0} {1}", container.GetType().Name, label));
src\Framework\System\Windows\SystemResourceKey.cs (1)
382srkField = targetType.Name + srkField;
src\Framework\System\Windows\TemplateContentLoader.cs (3)
29throw new InvalidOperationException(SR.Get(SRID.DeferringLoaderNoContext,typeof(TemplateContentLoader).Name, typeof(T).Name)); 36throw new NotSupportedException(SR.Get(SRID.DeferringLoaderNoSave, typeof(TemplateContentLoader).Name));
src\Framework\System\Windows\TemplateKey.cs (6)
54throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "DataType", this.GetType().Name)); 73throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "DataType", this.GetType().Name)); 75throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "DataType", this.GetType().Name)); 124this.GetType().Name, DataType) 126this.GetType().Name); 169result = new ArgumentException(SR.Get(SRID.MustBeTypeOrString, dataType.GetType().Name), argName);
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
90throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IProvideValueTarget" ));
src\Framework\System\Windows\Trigger.cs (1)
83value.GetType().Name));
src\Framework\System\Windows\TriggerBase.cs (1)
311throw new InvalidOperationException(SR.Get(SRID.VisualTriggerSettersIncludeUnsupportedSetterType, setters[i].GetType().Name));
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (6)
312string constructorName = type.FullName + "." + type.Name + "()"; 337string constructorName = string.Format("{0}.{1}({2})", type.FullName, type.Name, typeof(TArg1).Name); 364string constructorName = string.Format("{0}.{1}({2},{3})", type.FullName, type.Name, typeof(TArg1).Name, typeof(TArg2).Name);
System (68)
compmod\microsoft\win32\SystemEvents.cs (1)
1158productName = t.Name;
compmod\system\codedom\CodeTypeReference.cs (2)
95baseType = type.Name; 100baseType = currentType.Name + "+" + baseType;
compmod\system\componentmodel\ArrayConverter.cs (1)
37return SR.GetString(SR.ArrayConverterText, value.GetType().Name);
compmod\system\componentmodel\basenumberconverter.cs (1)
62return new Exception(SR.GetString(SR.ConvertInvalidPrimitive, failedText, TargetType.Name), innerException);
compmod\system\componentmodel\design\serialization\InstanceDescriptor.cs (1)
150Debug.Fail("Unrecognized reflection type in instance descriptor: " + member.GetType().Name);
compmod\system\componentmodel\design\ServiceObjectContainer.cs (6)
91Debug.WriteLineIf(TRACESERVICE.TraceVerbose, "Adding service (instance) " + serviceType.Name + ". Promoting: " + promote.ToString()); 130Debug.WriteLineIf(TRACESERVICE.TraceVerbose, "Adding service (callback) " + serviceType.Name + ". Promoting: " + promote.ToString()); 187Debug.WriteLineIf(TRACESERVICE.TraceVerbose, "Searching for service " + serviceType.Name); 214Debug.Fail("Object " + service.GetType().Name + " was returned from a service creator callback but it does not implement the registered type of " + serviceType.Name); 253Debug.WriteLineIf(TRACESERVICE.TraceVerbose, "Removing service: " + serviceType.Name + ", Promote: " + promote.ToString());
compmod\system\componentmodel\EnumConverter.cs (4)
133throw new FormatException(SR.GetString(SR.ConvertInvalidPrimitive, (string)value, type.Name), e); 167throw new ArgumentException(SR.GetString(SR.EnumConverterInvalidValue, value.ToString(), type.Name)); 274if (field.Name != null) { 275value = Enum.Parse(type, field.Name);
compmod\system\componentmodel\InvalidEnumArgumentException.cs (1)
54enumClass.Name), argumentName) {
compmod\system\componentmodel\ReflectEventDescriptor.cs (4)
100: base(eventInfo.Name, new Attribute[0]) { 267string eventName = realEventInfo.Name; 335EventInfo test = start.GetEvent(realEvent.Name, bindingFlags); 378string methodName = realMethodInfo.Name;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
453string name = propInfo.Name; 961message = t.GetType().Name;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (10)
677TypeDescriptor.Trace("Extenders : object has new extenders : {0}", instance.GetType().Name); 940TypeDescriptor.Trace("Attributes : Building attributes for {0}", type.Name); 1025TypeDescriptor.Trace("Events : Building events for {0}", type.Name); 1230TypeDescriptor.Trace("Properties : Building properties for {0}", type.Name); 1256string name = propertyInfo.Name; 1450TypeDescriptor.Trace("Reflect : Creating ReflectedTypeData for {0}", type.Name); 1476TypeDescriptor.Trace("Attributes : Building collection for {0}", _type.Name); 1652TypeDescriptor.Trace("Converters : Building converter for {0}", _type.Name); 1886TypeDescriptor.Trace("Events : Building collection for {0}", _type.Name); 1923TypeDescriptor.Trace("Properties : Building collection for {0}", _type.Name);
compmod\system\componentmodel\TypeConverter.cs (2)
256throw new NotSupportedException(SR.GetString(SR.ConvertFromException, GetType().Name, valueTypeName)); 273throw new NotSupportedException(SR.GetString(SR.ConvertToException, GetType().Name, valueTypeName, destinationType.FullName));
compmod\system\componentmodel\TypeDescriptor.cs (14)
485Trace("Providers : Default provider found : {0}", providerType.Name); 1320Trace("Associations : Associated {0} to {1}", primary.GetType().Name, secondary.GetType().Name); 1352Trace("Associations : Associated {0} to {1}", primary.GetType().Name, designer.GetType().Name); 1466Trace("Attributes : Allocated new attribute collection for {0}", component.GetType().Name); 1868Trace("Events : Allocated new event collection for {0}", component.GetType().Name); 2098Trace("Properties : Allocated new property collection for {0}", component.GetType().Name); 2312Trace("Nodes : Allocated new instance node for {0}. Now {1} nodes", type.Name, _providerTable.Count); 2443Trace("Pipeline : Filter needs to create member list for {0}", instance.GetType().Name); 2476Trace("Pipeline : Attribute Filter results being cached for {0}", instance.GetType().Name); 2612Trace("Pipeline : Filter needs to create member list for {0}", instance.GetType().Name); 2681Trace("Pipeline : Filter results being cached for {0}", instance.GetType().Name); 2827Trace("Pipeline : Merge results being cached for {0}", instance.GetType().Name);
net\System\Net\Cache\_SingleItemRequestCache.cs (2)
366if (_Disposed) throw new ObjectDisposedException(GetType().Name); 534if (_Disposed) throw new ObjectDisposedException(GetType().Name);
net\System\Net\HttpWebRequest.cs (2)
5456string methodId = callback.Method.Name; 5466objectId = baseObject.GetType().Name + "#"
net\System\Net\Logging.cs (1)
285return obj.GetType().Name;
net\System\Net\WebSockets\WebSocketBase.cs (2)
936typeof(WebSocket).Name + "." + Methods.CloseAsync, 937typeof(WebSocket).Name + "." + Methods.CloseOutputAsync,
net\System\Net\WebSockets\WebSocketException.cs (2)
161typeof(WebSocket).Name + WebSocketBase.Methods.CloseAsync, 162typeof(WebSocket).Name + WebSocketBase.Methods.CloseOutputAsync);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
1249m_CurrentStream.GetType().Name, ValidationHelper.HashString(m_CurrentStream)));
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
612throw new ObjectDisposedException(this.GetType().Name);
services\io\system\io\FileSystemWatcher.cs (1)
944throw new ObjectDisposedException(GetType().Name);
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
1282throw new ObjectDisposedException(GetType().Name); 1323throw new ObjectDisposedException(GetType().Name);
services\monitoring\system\diagnosticts\Process.cs (3)
1733throw new ObjectDisposedException(GetType().Name); 1990throw new ObjectDisposedException(GetType().Name); 2185throw new ObjectDisposedException(GetType().Name);
services\timers\system\timers\Timer.cs (1)
128throw new ObjectDisposedException(GetType().Name);
sys\system\configuration\ApplicationSettingsBase.cs (1)
413sp.Name = propInfo.Name;
System.Activities (156)
System\Activities\ActivityDelegate.cs (1)
56this.displayName = this.GetType().Name;
System\Activities\ActivityInstance.cs (2)
479this.ownerName = this.Activity.GetType().Name; 1111if (activity.GetType().Name != this.OwnerName)
System\Activities\ActivityUtilities.cs (2)
490string displayName = sourceType.Name; 514return sourceType.Name;
System\Activities\Debugger\DebugInfo.cs (1)
566return this.Location.LocationType.Name;
System\Activities\Debugger\DebugManager.cs (1)
235displayName = activity.GetType().Name;
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
300sb.Append(type.Name);
System\Activities\Expressions\ArrayItemReference.cs (1)
62throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\ArrayItemValue.cs (1)
58throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\CompiledExpressionInvoker.cs (1)
83throw FxTrace.Exception.AsError(new NotSupportedException(SR.TextExpressionMetadataRequiresCompilation(this.expressionActivity.GetType().Name)));
System\Activities\Expressions\ExpressionServices.cs (47)
85if (TypeHelper.AreTypesCompatible(declaringType, typeof(Variable)) && calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 90&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 95&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 99else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 105else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 197if (declaringType.IsArray && calledMethod.Name == "Get") 202if (calledMethod.IsSpecialName && calledMethod.Name == "get_Item") 208if (TypeHelper.AreTypesCompatible(declaringType, typeof(Variable)) && calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 213&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 218&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 222else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 734result = new ArgumentValue<TResult> { ArgumentName = property.Name }; 758result = new ArgumentReference<TResult> { ArgumentName = property.Name }; 1049result = new PropertyValue<TOperand, TResult> { PropertyName = memberExpressionBody.Member.Name }; 1053result = new PropertyValue<TOperand, TResult> { Operand = operand, PropertyName = memberExpressionBody.Member.Name }; 1061result = new FieldValue<TOperand, TResult> { FieldName = memberExpressionBody.Member.Name }; 1065result = new FieldValue<TOperand, TResult> { Operand = operand, FieldName = memberExpressionBody.Member.Name }; 1071throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name))); 1075return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name); 1127result = new PropertyReference<TOperand, TResult> { PropertyName = memberExpressionBody.Member.Name }; 1131result = new PropertyReference<TOperand, TResult> { Operand = operand, PropertyName = memberExpressionBody.Member.Name }; 1138result = new ValueTypePropertyReference<TOperand, TResult> { PropertyName = memberExpressionBody.Member.Name }; 1142result = new ValueTypePropertyReference<TOperand, TResult> { OperandLocation = operandReference, PropertyName = memberExpressionBody.Member.Name }; 1154result = new FieldReference<TOperand, TResult> { FieldName = memberExpressionBody.Member.Name }; 1158result = new FieldReference<TOperand, TResult> { Operand = operand, FieldName = memberExpressionBody.Member.Name }; 1165result = new ValueTypeFieldReference<TOperand, TResult> { FieldName = memberExpressionBody.Member.Name }; 1169result = new ValueTypeFieldReference<TOperand, TResult> { OperandLocation = operandReference, FieldName = memberExpressionBody.Member.Name }; 1177throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name))); 1181return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name); 1202MethodName = unaryExpression.Method.Name, 1226MethodName = binaryExpression.Method.Name, 1242throw FxTrace.Exception.AsError(new ValidationException(SR.MethodInfoRequired(methodCallExpression.GetType().Name))); 1246return SR.MethodInfoRequired(methodCallExpression.GetType().Name); 1249if (string.IsNullOrEmpty(methodInfo.Name) || methodInfo.DeclaringType == null) 1253throw FxTrace.Exception.AsError(new ValidationException(SR.MethodNameRequired(methodInfo.GetType().Name))); 1257return SR.MethodNameRequired(methodInfo.GetType().Name); 1262MethodName = methodInfo.Name, 1270throw FxTrace.Exception.AsError(new ValidationException(SR.ArgumentNumberRequiresTheSameAsParameterNumber(methodCallExpression.GetType().Name))); 1274return SR.ArgumentNumberRequiresTheSameAsParameterNumber(methodCallExpression.GetType().Name); 1290throw FxTrace.Exception.AsError(new ValidationException(SR.InvalidGenericTypeInfo(methodCallExpression.GetType().Name))); 1294return SR.InvalidGenericTypeInfo(methodCallExpression.GetType().Name); 1337throw FxTrace.Exception.AsError(new ValidationException(SR.InvalidExpressionProperty(invocationExpression.GetType().Name))); 1341return SR.InvalidExpressionProperty(invocationExpression.GetType().Name); 1415throw FxTrace.Exception.AsError(new ValidationException(SR.ArgumentNumberRequiresTheSameAsParameterNumber(newExpression.GetType().Name))); 1419return SR.ArgumentNumberRequiresTheSameAsParameterNumber(newExpression.GetType().Name); 1462throw FxTrace.Exception.AsError(new ValidationException(SR.InvalidParameterInfo(i, expressionType.Name))); 1466return SR.InvalidParameterInfo(i, expressionType.Name);
System\Activities\Expressions\FieldReference.cs (4)
40metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 44metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName)); 58metadata.AddValidationError(SR.MemberNotFound(this.FieldName, typeof(TOperand).Name)); 64metadata.AddValidationError(SR.MemberIsReadOnly(this.FieldName, typeof(TOperand).Name));
System\Activities\Expressions\FieldValue.cs (3)
37metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 52metadata.AddValidationError(SR.MemberNotFound(this.FieldName, typeof(TOperand).Name)); 75throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\IndexerReference.cs (5)
68metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName)); 72metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName)); 79metadata.AddValidationError(SR.SpecialMethodNotFound("set_Item", typeof(TOperand).Name)); 110throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName))); 159throw FxTrace.Exception.AsError(new InvalidOperationException(SR.SpecialMethodNotFound("get_Item", typeof(TOperand).Name)));
System\Activities\Expressions\MemberExpressionHelper.cs (1)
79throw FxTrace.Exception.AsError(new ValidationException(SR.MemberNotFound(memberName, typeof(TOperand).Name)));
System\Activities\Expressions\MultidimensionalArrayItemReference.cs (4)
54metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName)); 79throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName))); 85throw FxTrace.Exception.AsError(new InvalidCastException(SR.IncompatibleTypeForMultidimensionalArrayItemReference(typeof(TItem).Name, realItemType.Name)));
System\Activities\Expressions\New.cs (1)
89metadata.AddValidationError(SR.ConstructorInfoNotFound(typeof(TResult).Name));
System\Activities\Expressions\NewArray.cs (1)
89metadata.AddValidationError(SR.ConstructorInfoNotFound(typeof(TResult).Name));
System\Activities\Expressions\PropertyReference.cs (9)
46metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 50metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName)); 64metadata.AddValidationError(SR.MemberNotFound(PropertyName, typeof(TOperand).Name)); 77metadata.AddValidationError(SR.ReadonlyPropertyCannotBeSet(this.propertyInfo.DeclaringType, this.propertyInfo.Name)); 137throw FxTrace.Exception.AsError(new InvalidOperationException(SR.NullReferencedMemberAccess(this.propertyInfo.DeclaringType.Name, this.propertyInfo.Name))); 144throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WriteonlyPropertyCannotBeRead(this.propertyInfo.DeclaringType, this.propertyInfo.Name))); 155throw FxTrace.Exception.AsError(new InvalidOperationException(SR.NullReferencedMemberAccess(this.propertyInfo.DeclaringType.Name, this.propertyInfo.Name)));
System\Activities\Expressions\PropertyValue.cs (3)
36metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 51metadata.AddValidationError(SR.MemberNotFound(this.PropertyName, typeof(TOperand).Name)); 84throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\ValueTypeFieldReference.cs (4)
40metadata.AddValidationError(SR.TypeMustbeValueType(typeof(TOperand).Name)); 44metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 56metadata.AddValidationError(SR.MemberNotFound(this.FieldName, typeof(TOperand).Name)); 60metadata.AddValidationError(SR.MemberIsReadOnly(this.FieldName, typeof(TOperand).Name));
System\Activities\Expressions\ValueTypeIndexerReference.cs (4)
68metadata.AddValidationError(SR.TypeMustbeValueType(typeof(TOperand).Name)); 72metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName)); 79metadata.AddValidationError(SR.SpecialMethodNotFound("set_Item", typeof(TOperand).Name)); 153throw FxTrace.Exception.AsError(new InvalidOperationException(SR.SpecialMethodNotFound("get_Item", typeof(TOperand).Name)));
System\Activities\Expressions\ValueTypePropertyReference.cs (5)
49metadata.AddValidationError(SR.TypeMustbeValueType(typeof(TOperand).Name)); 54metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 65metadata.AddValidationError(SR.MemberNotFound(PropertyName, typeof(TOperand).Name)); 77metadata.AddValidationError(SR.MemberIsReadOnly(propertyInfo.Name, typeof(TOperand))); 142throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WriteonlyPropertyCannotBeRead(this.propertyInfo.DeclaringType, this.propertyInfo.Name)));
System\Activities\ExpressionUtilities.cs (32)
125if (declaringType.BaseType == TypeHelper.ArrayType && method.Name == "Get") 129else if (method.IsSpecialName && method.Name.StartsWith("get_", StringComparison.Ordinal)) 133else if (method.Name == "GetValue" && declaringType == activityContextType) 137else if (method.Name == "Get" && declaringType.IsGenericType) 191if (declaringType.BaseType == TypeHelper.ArrayType && method.Name == "Get") 195else if (method.IsSpecialName && method.Name.StartsWith("get_", StringComparison.Ordinal)) 199else if (method.Name == "GetValue" && declaringType == activityContextType) 203else if (method.Name == "Get" && declaringType.IsGenericType) 406throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.fieldInfo.Name))); 415throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.fieldInfo.Name))); 500Fx.Assert(this.getItemMethod.IsSpecialName && this.getItemMethod.Name.StartsWith("get_", StringComparison.Ordinal), "Special get_Item method required."); 503this.indexerName = this.getItemMethod.Name.Substring(4); 589throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.getItemMethod.Name))); 600string targetObjectTypeName = this.targetObject.GetType().Name; 607throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.setItemMethod.Name))); 807throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WriteonlyPropertyCannotBeRead(this.propertyInfo.DeclaringType, this.propertyInfo.Name))); 812throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.propertyInfo.Name))); 828throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ReadonlyPropertyCannotBeSet(this.propertyInfo.DeclaringType, this.propertyInfo.Name))); 833throw FxTrace.Exception.AsError(new NullReferenceException(SR.CannotDereferenceNull(this.propertyInfo.Name))); 1416RuntimeArgument runtimeArgument = ActivityUtilities.FindArgument(memberExpression.Member.Name, publicAccessor.ActivityMetadata.CurrentActivity); 1831if (targetMethod.Name == "Get") 1835else if (targetMethod.Name == "GetLocation") 1842if (targetMethod.Name == "Get") 1849if (targetMethod.Name == "Get") 1853else if (targetMethod.Name == "GetLocation") 1860if (targetMethod.Name == "Get") 1867if (targetMethod.Name == "Get") 1871else if (targetMethod.Name == "GetLocation") 1898if (targetMethod.Name == "GetValue") 1909else if (targetMethod.IsGenericMethod && targetMethod.Name == "GetLocation") 1925if (targetMethod.Name == "Get") 1941if (targetMethod.Name == "Get")
System\Activities\Runtime\CallbackWrapper.cs (2)
163if (potentialMatch.IsGenericMethod && potentialMatch.Name == this.callbackName) 310this.callbackName = method.Name;
System\Activities\Runtime\ExecuteSynchronousExpressionWorkItem.cs (1)
169new ValidationException(SR.ActivityTypeMismatch(activity.DisplayName, typeof(ActivityWithResult).Name)));
System\Activities\Statements\MethodResolver.cs (12)
199metadata.AddValidationError(SR.TargetTypeAndTargetObjectAreMutuallyExclusive(this.Parent.GetType().Name, this.Parent.DisplayName)); 215metadata.AddValidationError(SR.OneOfTwoPropertiesMustBeSet("TargetObject", "TargetType", this.Parent.GetType().Name, this.Parent.DisplayName)); 262metadata.AddValidationError(SR.ReturnTypeIncompatible(this.endMethod.ReturnType.Name, MethodName, targetType.Name, this.Parent.DisplayName, resultType.Name)); 292metadata.AddValidationError(SR.DuplicateMethodFound(targetType.Name, bindingType, MethodName, this.Parent.DisplayName)); 298metadata.AddValidationError(SR.PublicMethodWithMatchingParameterDoesNotExist(targetType.Name, bindingType, MethodName, this.Parent.DisplayName)); 304SR.ReturnTypeIncompatible(result.ReturnType.Name, MethodName, 305targetType.Name, this.Parent.DisplayName, resultType.Name)); 539string type = newFound.ReflectedType.Name; 540string name = newFound.Name;
System\Activities\Statements\Throw.cs (1)
41throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Exception", this.GetType().Name, this.DisplayName)));
System\Activities\Validation\Constraint.cs (3)
39throw FxTrace.Exception.AsError(new InvalidOperationException(SR.AddValidationErrorMustBeCalledFromConstraint(typeof(Constraint).Name))); 63throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CannotValidateNullObject(typeof(Constraint).Name, this.DisplayName))); 68throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ValidationContextCannotBeNull(typeof(Constraint).Name, this.DisplayName)));
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
420string typeName = componentType.Name;
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (1)
64if (node.Member.Name == locationReference.Name)
System\Activities\XamlIntegration\NetDataContractXmlSerializable.cs (1)
30throw FxTrace.Exception.AsError(new NotSupportedException(SR.CannotGenerateSchemaForXmlSerializable(typeof(T).Name)));
System.Activities.Core.Presentation (23)
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (1)
552reason = string.Format(CultureInfo.CurrentUICulture, SR.EqualityError, genericType.Name);
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (2)
192if (this.Type != null && !string.IsNullOrEmpty(this.Type.Name)) 194return this.Type.Name;
System\ServiceModel\Activities\Presentation\Converters\ReceiveParametersContentSearchableStringConverter.cs (1)
23results.Add(param.Value.GetType().Name);
System\ServiceModel\Activities\Presentation\Converters\SendParametersContentSearchableStringConverter.cs (1)
23results.Add(param.Value.GetType().Name);
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (4)
81Action = receiveType.GetProperty("Action").Name; 84Message = receiveMessageContentType.GetProperty("Message").Name; 85DeclaredMessageType = receiveMessageContentType.GetProperty("DeclaredMessageType").Name; 165ErrorReporting.ShowAlertMessage(string.Format(CultureInfo.CurrentUICulture, System.Activities.Core.Presentation.SR.CannotPasteSendReplyOrReceiveReply, typeof(SendReply).Name));
System\ServiceModel\Activities\Presentation\ReceiveReplyDesigner.xaml.cs (3)
59Action = receiveType.GetProperty("Action").Name; 62Message = receiveMessageContentType.GetProperty("Message").Name; 63DeclaredMessageType = receiveMessageContentType.GetProperty("DeclaredMessageType").Name;
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (4)
84Action = sendType.GetProperty("Action").Name; 87Message = sendMessageContentType.GetProperty("Message").Name; 88DeclaredMessageType = sendMessageContentType.GetProperty("DeclaredMessageType").Name; 168ErrorReporting.ShowAlertMessage(string.Format(CultureInfo.CurrentUICulture, System.Activities.Core.Presentation.SR.CannotPasteSendReplyOrReceiveReply, typeof(ReceiveReply).Name));
System\ServiceModel\Activities\Presentation\SendReplyDesigner.xaml.cs (3)
57Action = sendType.GetProperty("Action").Name; 60Message = sendMessageContentType.GetProperty("Message").Name; 61DeclaredMessageType = sendMessageContentType.GetProperty("DeclaredMessageType").Name;
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
117Name = contractType.Name + "." + generatedActivity.DisplayName,
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (3)
76.OrderBy(member => member.Name); 83.OrderBy(member => member.Name); 91.OrderBy(member => member.Name);
System.Activities.DurableInstancing (6)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
153throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(WorkflowNamespace.WorkflowHostType, typeof(XName).Name)));
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
296throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(WorkflowNamespace.WorkflowHostType, typeof(XName).Name)));
System\Activities\DurableInstancing\SerializationUtilities.cs (4)
313string typeName = typeof(IList<>).Name.Replace("`1", "<" + typeof(WorkflowIdentity).Name + ">"); 337throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(Workflow45Namespace.DefinitionIdentityFilter, typeof(WorkflowIdentityFilter).Name))); 353throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(Workflow45Namespace.DefinitionIdentity, typeof(WorkflowIdentity).Name)));
System.Activities.Presentation (109)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (3)
28return type.Name; 39return type.Name; 55name = type.Name;
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (3)
45if (targetProperty.Name == propertyInfo.Name) 54newProperties.Add(propertyInfo.Name);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (2)
71string activityBuilderTypeName = typeof(ActivityBuilder).Name; 205prefix = frameObject.Type.UnderlyingType.Name;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (4)
41argument.Name = property.Name; 70list.Add(new ActivityDelegateInfo(activity, property.Name)); 127return StringComparer.Ordinal.Compare(x.Name, y.Name);
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (2)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
691typeof(ServiceManager).Name,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (4)
120strBldr.Append(resultType.Name.Substring(0, resultType.Name.IndexOf('`'))); 134strBldr.Append(this.displayFullName ? arg.FullName : arg.Name); 141return this.displayFullName ? resultType.FullName : resultType.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
57string typeName = type.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (6)
227Fx.Assert(methodInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 228return targetType.GetMethod(methodInfo.Name, _getInfoBindingFlags, null, ToTypeArray(methodInfo.GetParameters()), null); 237Fx.Assert(propInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 238return targetType.GetProperty(propInfo.Name, _getInfoBindingFlags, null, propInfo.PropertyType, ToTypeArray(propInfo.GetIndexParameters()), null); 247Fx.Assert(eventInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 248return targetType.GetEvent(eventInfo.Name, _getInfoBindingFlags);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
105AddAttributes(GetMemberList(ownerType, member.Name), attributes); 275return GetCustomAttributes(ownerType, member.Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (4)
187return typeof(CategoryContainer).Name; 414return typeof(ItemsControl).Name; 447return typeof(CategoryEditor).Name; 451return Item == null ? string.Empty : Item.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (2)
68return typeof(ItemsControl).Name; 92selection.GetType().Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyContainerAutomationPeer.cs (1)
84return typeof(PropertyContainer).Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
94return typeof(PropertyInspector).Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
64return typeof(SubPropertyEditor).Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1024if (string.Equals(editorTypeName, editor.GetType().Name))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryLayoutContainer.cs (1)
28string editorTypeName = item.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
57throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidFlagName, value, flagType.Name)));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (1)
28return model.Type.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (2)
61valueTypeName = propertyEntry.CommonValueType == null ? string.Empty : propertyEntry.CommonValueType.Name; 71valueTypeName = rawPropertyValue.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (1)
58this.ReportException(string.Format(CultureInfo.CurrentCulture, ExceptionStringTable.NewItemFactoryIconLoadFailed, this.factory.GetType().Name, exception.Message));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (3)
63if (string.Equals(propertyViewManagerTypeName, typeof(ByCategoryViewManager).Name)) 67else if (string.Equals(propertyViewManagerTypeName, typeof(AlphabeticalViewManager).Name)) 104_persistenceIdToManagerTypeNameMap[persistenceId] = manager.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (10)
355Debug.Fail("Member " + member + " is not a member of type " + objectType.Name); 1093public override string Name { get { return _baseReflectionType.Name; } } 1598member.Name.StartsWith("Get", StringComparison.Ordinal) && 1599member.Name.Length > 3, 1602return member.Name.Substring(3); 1605return member.Name; 1701if (info.IsStatic && info.Name.StartsWith("Get", StringComparison.Ordinal)) 1826public override string Name { get { return _info.Name; } } 1889public override string Name { get { return _info.Name; } } 1957public override string Name { get { return _info.Name; } }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
79typeof(CategoryEditor).Name)));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemfactory.cs (1)
65return type.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\propertyentry.cs (1)
161predicate.Match(this.DisplayName) || predicate.Match(this.PropertyType.Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
80typeof(PropertyValueEditor).Name)));
System.Activities.Presentation\System\Activities\Presentation\Converters\OutlineViewTextConverter.cs (1)
39Fx.Assert(modelItem.ItemType != null && modelItem.ItemType.Name != null, "ModelItem should always have a name");
System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (2)
47if (mi.MemberType == MemberTypes.Property && !mi.Name.Equals("Name") && !mi.Name.Equals("ImplementationVersion"))
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
100ShowMessageBox(string.Format(CultureInfo.InvariantCulture, "{0}:\r\n{1}", err.GetType().Name, err.Message), MessageBoxImage.Error, err.StackTrace);
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
45throw FxTrace.Exception.Argument("activityType", string.Format(CultureInfo.CurrentCulture, SR.TypeDoesNotInheritFromActivity, activityType.Name));
System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelPropertyImpl.cs (1)
161get { return this.GetType().Name; }
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
902Fx.Assert("Expand is in invalid state - we should never end up here. Item to focus: " + displayName + " (" + this.itemToFocus.ItemType.Name + ")"); 990Fx.Assert("OnFocusElement is in invalid state - we should never get here. Item to focus: " + displayName + " (" + this.itemToFocus.ItemType.Name + ")");
System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
124string typeName = activityType.IsGenericType ? activityType.Name : activityType.FullName;
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
385string error = string.Format(CultureInfo.CurrentCulture, SR.NotSupportedToolboxTypeFormatString, toolType.Name, reason);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (2)
181if (this.Options != null && this.Options.HintTextMap.TryGetValue(type.Name, out hintText)) 231MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
31breadCrumbText = boundModelItem.ItemType.Name;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (5)
1096string name = rootItem.ItemType.Name; 1148MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error); 1393System.Diagnostics.Debug.WriteLine(target.GetType().Name + " " + target.GetHashCode()); 1706commandParameters.Add(typeof(BreakpointTypes).Name, BreakpointTypes.Bounded); 1709commandParameters.Add(typeof(SourceLocation).Name, debuggerService.SelectedLocation);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
653DateTime.Now.ToLocalTime(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
636static string ITextExpressionInterfaceName = typeof(ITextExpression).Name;
System.Activities.Presentation\System\Activities\Presentation\View\FilterableData.cs (1)
63return string.Format(CultureInfo.CurrentUICulture, "{0}:({1})", base.ToString(), typeof(TData).Name);
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (2)
276errorTitle = err.GetType().Name; 583orderby type.Namespace, type.Name
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
406typeName = type.Name; 791return this.type.Name;
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
26target = editedType.Name;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
105string errorText = string.Format(CultureInfo.CurrentCulture, SR.CouldNotGenerateView, modelItem.ItemType.Name);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
765return this.owner.GetType().Name; 773!string.IsNullOrEmpty(owner.Item.ItemType.Name)) 775return owner.Item.ItemType.Name; 787return this.owner.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
933automationId = this.owner.GetType().Name; 956return this.owner.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (15)
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture))); 452this.defaultCompositeView.GetType().Name, this.GetType().Name, this.defaultCompositeView.GetHashCode())); 484container.GetType().Name, this.GetType().Name, container.GetHashCode())); 502container.GetType().Name, this.GetType().Name)); 547DateTime.Now.ToLocalTime(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource)); 642DateTime.Now.ToLocalTime(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource)); 650DateTime.Now.ToLocalTime(), this.GetType().Name)); 814DateTime.Now.ToLocalTime(), this.GetType().Name, this.IsMouseCaptured)); 1119StringBuilder name = new StringBuilder(itemType.Name); 1123name.Append(argument.Name); 1131return itemType.Name; 1147return this.owner.GetType().Name;
System.AddIn (13)
System\Addin\Hosting\AddInActivator.cs (1)
469DynamicMethod invoker = new DynamicMethod(targetType.Name + "_ConstructorInvoker", // name, only usefult for debugging
System\Addin\Hosting\AddInStore.cs (3)
558Trace.WriteLine(String.Format(System.Globalization.CultureInfo.CurrentCulture, Res.HostViewUnusableBecauseItIsGeneric, hostViewOfAddIn.Name)); 1231warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, assemblyFileName)); 1339warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, assemblyFileName));
System\Addin\Hosting\InspectionWorker.cs (4)
239retval.Warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.AssemblyLoadThrew, e.GetType().Name, e.Message, _assemblyFileName)); 271retval.Warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.AddInInAddInViewFolder, type.Name, _assemblyFileName)); 280if (cana.MemberInfo.Name == "ActivatableAs") 324retval.Warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, _assemblyFileName));
System\Addin\MiniReflection\MiniModule.cs (1)
129String attributeName = customAttribute.Name;
System\Addin\MiniReflection\TypeInfo.cs (3)
194_typeName = type.Name; 988if (caTypeName == caReflectedType.Name && caNameSpace == caReflectedType.Namespace) { 1035return new MiniCustomAttributeInfo(caReflectedType.Name, fixedArgs.ToArray(), namedArgs.ToArray());
System\Addin\Pipeline\ListContractAdapter.cs (1)
34throw new ArgumentException(Res.TypeShouldBeSerializableOrIContract, typeof(U).Name);
System.ComponentModel.DataAnnotations (11)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (3)
116HashSet<string> mainTypeMemberNames = new HashSet<string>(mainType.GetProperties().Select(p => p.Name)); 119var buddyFields = associatedMetadataType.GetFields().Select(f => f.Name); 120var buddyProperties = associatedMetadataType.GetProperties().Select(p => p.Name);
DataAnnotations\CustomValidationAttribute.cs (5)
208return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Type_Must_Be_Public, this._validatorType.Name); 226return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Not_Found, this._method, this._validatorType.Name); 231return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Must_Return_ValidationResult, this._method, this._validatorType.Name); 238return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Signature, this._method, this._validatorType.Name); 248return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Signature, this._method, this._validatorType.Name);
DataAnnotations\ValidationAttribute.cs (1)
263property.Name,
DataAnnotations\ValidationAttributeStore.cs (1)
178throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.AttributeStore_Unknown_Property, this._type.Name, propertyName), "propertyName");
DataAnnotations\ValidationContext.cs (1)
176this._displayName = this.ObjectType.Name;
System.Configuration (9)
System\Configuration\ClientConfigPaths.cs (1)
547_productName = mainType.Name.Trim();
System\Configuration\ConfigurationConverterBase.cs (1)
33throw new ArgumentException(SR.GetString(SR.Converter_unsupported_value_type, expected.Name));
System\Configuration\ConfigurationElement.cs (5)
764propertyInformation.Name, attribProperty.Name)); 783propertyInformation.Name,attribProperty.Name)); 882type.Name)); 977tw.WriteLine("{0}: {1}", pi.Name, pi.GetValue(this, null)); 1740throw new ConfigurationErrorsException(SR.GetString(SR.Validator_does_not_support_elem_type, elem.GetType().Name));
System\Configuration\ConfigurationProperty.cs (2)
111throw new ConfigurationErrorsException(SR.GetString(SR.Validator_multiple_validator_attributes, info.Name)); 435throw new ConfigurationErrorsException(SR.GetString(SR.No_converter, _name, _type.Name));
System.Core (57)
Microsoft\Scripting\Actions\CallSiteHelpers.cs (1)
40if (mb.Name == "CallSite.Target" && mb.GetType() != _knownNonDynamicMethodType) {
Microsoft\Scripting\Ast\BinaryExpression.cs (11)
621ValidateParamswithOperandsOrThrow(pms[0].ParameterType, left.Type, binaryType, method.Name); 622ValidateParamswithOperandsOrThrow(pms[1].ParameterType, right.Type, binaryType, method.Name); 637throw Error.OperandTypesDoNotMatchParameters(binaryType, method.Name); 645throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.Method.Name); 672throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.Method.Name); 776throw Error.OperandTypesDoNotMatchParameters(nodeType, method.Name); 780throw Error.OperandTypesDoNotMatchParameters(nodeType, method.Name); 783throw Error.UserDefinedOpMustHaveConsistentTypes(nodeType, method.Name); 786throw Error.UserDefinedOpMustHaveConsistentTypes(nodeType, method.Name); 796throw Error.LogicalOperatorMustHaveBooleanOperators(nodeType, method.Name); 809throw Error.OperandTypesDoNotMatchParameters(nodeType, opTrue.Name);
Microsoft\Scripting\Ast\DebugViewWriter.cs (6)
550Out("." + member.Name); 553Out(member.DeclaringType.ToString() + "." + member.Name); 782Out(node.Method.Name); 822Out(assignment.Member.Name); 829Out(binding.Member.Name); 836Out(binding.Member.Name);
Microsoft\Scripting\Ast\ElementInit.cs (2)
126if (!addMethod.Name.Equals("Add", StringComparison.OrdinalIgnoreCase)) { 134throw Error.ElementInitializerMethodNoRefOutParam(pi.Name, addMethod.Name);
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (16)
427Out("." + member.Name); 430Out(member.DeclaringType.Name + "." + member.Name); 441node.NewExpression.Type.Name.Contains("<")) { 460Out(assignment.Member.Name); 467Out(binding.Member.Name); 480Out(binding.Member.Name); 530Out(node.Method.Name); 578Out("new " + node.Type.Name); 586string name = members[i].Name; 616Out(node.TypeOperand.Name); 675Out(node.Type.Name); 704Out(node.Type.Name); 748Out("catch (" + node.Test.Name); 766Out(node.Indexer.DeclaringType.Name); 770Out(node.Indexer.Name);
Microsoft\Scripting\Ast\IndexExpression.cs (1)
252argTypesStr.Append(t.Name);
Microsoft\Scripting\Ast\MemberExpression.cs (5)
157throw Error.FieldInfoNotDefinedForType(field.DeclaringType, field.Name, expression.Type); 304throw Error.MethodNotPropertyAccessor(mi.DeclaringType, mi.Name); 315if (type.IsInterface && method.Name == propertyMethod.Name && type.GetMethod(method.Name) == propertyMethod) {
Microsoft\Scripting\Ast\MemberMemberBinding.cs (1)
150throw Error.NotAMemberOfType(b.Member.Name, type);
Microsoft\Scripting\Ast\NewExpression.cs (2)
245throw Error.ArgumentMemberNotDeclOnType(member.Name, constructor.DeclaringType.Name);
Microsoft\Scripting\Ast\TypeUtils.cs (2)
471if (mi.Name != "op_Implicit" && (implicitOnly || mi.Name != "op_Explicit")) {
Microsoft\Scripting\Ast\UnaryExpression.cs (4)
400ValidateParamswithOperandsOrThrow(pms[0].ParameterType, operand.Type, unaryType, method.Name); 410throw Error.OperandTypesDoNotMatchParameters(unaryType, method.Name); 446throw Error.OperandTypesDoNotMatchParameters(unaryType, method.Name); 999throw Error.UserDefinedOpMustHaveValidReturnType(kind, method.Name);
System\Linq\SequenceQuery.cs (4)
207MethodInfo seqMethod = FindEnumerableMethod(m.Method.Name, args, typeArgs); 214MethodInfo method = FindMethod(m.Method.DeclaringType, m.Method.Name, args, typeArgs, flags); 315_seqMethods = typeof(Enumerable).GetMethods(BindingFlags.Static|BindingFlags.Public).ToLookup(m => m.Name); 326MethodInfo[] methods = type.GetMethods(flags).Where(m => m.Name == name).ToArray();
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
100get { return _innerEventInfo.Name; } 126System.Reflection.MethodInfo methodInfo = sourceItf.GetMethod(eventInfo.Name);
System.Data (167)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (3)
28return type.Name; 39return type.Name; 55name = type.Name;
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (3)
45if (targetProperty.Name == propertyInfo.Name) 54newProperties.Add(propertyInfo.Name);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
71string activityBuilderTypeName = typeof(ActivityBuilder).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (4)
41argument.Name = property.Name; 70list.Add(new ActivityDelegateInfo(activity, property.Name)); 127return StringComparer.Ordinal.Compare(x.Name, y.Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (2)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
691typeof(ServiceManager).Name,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (4)
120strBldr.Append(resultType.Name.Substring(0, resultType.Name.IndexOf('`'))); 134strBldr.Append(this.displayFullName ? arg.FullName : arg.Name); 141return this.displayFullName ? resultType.FullName : resultType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
57string typeName = type.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (6)
227Fx.Assert(methodInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 228return targetType.GetMethod(methodInfo.Name, _getInfoBindingFlags, null, ToTypeArray(methodInfo.GetParameters()), null); 237Fx.Assert(propInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 238return targetType.GetProperty(propInfo.Name, _getInfoBindingFlags, null, propInfo.PropertyType, ToTypeArray(propInfo.GetIndexParameters()), null); 247Fx.Assert(eventInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 248return targetType.GetEvent(eventInfo.Name, _getInfoBindingFlags);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
105AddAttributes(GetMemberList(ownerType, member.Name), attributes); 275return GetCustomAttributes(ownerType, member.Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (3)
187return typeof(CategoryContainer).Name; 414return typeof(ItemsControl).Name; 447return typeof(CategoryEditor).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
68return typeof(ItemsControl).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyContainerAutomationPeer.cs (1)
84return typeof(PropertyContainer).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
94return typeof(PropertyInspector).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
64return typeof(SubPropertyEditor).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1024if (string.Equals(editorTypeName, editor.GetType().Name))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryLayoutContainer.cs (1)
28string editorTypeName = item.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
57throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidFlagName, value, flagType.Name)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (1)
28return model.Type.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (2)
61valueTypeName = propertyEntry.CommonValueType == null ? string.Empty : propertyEntry.CommonValueType.Name; 71valueTypeName = rawPropertyValue.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (1)
58this.ReportException(string.Format(CultureInfo.CurrentCulture, ExceptionStringTable.NewItemFactoryIconLoadFailed, this.factory.GetType().Name, exception.Message));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (3)
63if (string.Equals(propertyViewManagerTypeName, typeof(ByCategoryViewManager).Name)) 67else if (string.Equals(propertyViewManagerTypeName, typeof(AlphabeticalViewManager).Name)) 104_persistenceIdToManagerTypeNameMap[persistenceId] = manager.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (10)
355Debug.Fail("Member " + member + " is not a member of type " + objectType.Name); 1093public override string Name { get { return _baseReflectionType.Name; } } 1598member.Name.StartsWith("Get", StringComparison.Ordinal) && 1599member.Name.Length > 3, 1602return member.Name.Substring(3); 1605return member.Name; 1701if (info.IsStatic && info.Name.StartsWith("Get", StringComparison.Ordinal)) 1826public override string Name { get { return _info.Name; } } 1889public override string Name { get { return _info.Name; } } 1957public override string Name { get { return _info.Name; } }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
79typeof(CategoryEditor).Name)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemfactory.cs (1)
65return type.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\propertyentry.cs (1)
161predicate.Match(this.DisplayName) || predicate.Match(this.PropertyType.Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
80typeof(PropertyValueEditor).Name)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\OutlineViewTextConverter.cs (1)
39Fx.Assert(modelItem.ItemType != null && modelItem.ItemType.Name != null, "ModelItem should always have a name");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (2)
47if (mi.MemberType == MemberTypes.Property && !mi.Name.Equals("Name") && !mi.Name.Equals("ImplementationVersion"))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
100ShowMessageBox(string.Format(CultureInfo.InvariantCulture, "{0}:\r\n{1}", err.GetType().Name, err.Message), MessageBoxImage.Error, err.StackTrace);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
45throw FxTrace.Exception.Argument("activityType", string.Format(CultureInfo.CurrentCulture, SR.TypeDoesNotInheritFromActivity, activityType.Name));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelPropertyImpl.cs (1)
161get { return this.GetType().Name; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
902Fx.Assert("Expand is in invalid state - we should never end up here. Item to focus: " + displayName + " (" + this.itemToFocus.ItemType.Name + ")"); 990Fx.Assert("OnFocusElement is in invalid state - we should never get here. Item to focus: " + displayName + " (" + this.itemToFocus.ItemType.Name + ")");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
124string typeName = activityType.IsGenericType ? activityType.Name : activityType.FullName;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
385string error = string.Format(CultureInfo.CurrentCulture, SR.NotSupportedToolboxTypeFormatString, toolType.Name, reason);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (2)
181if (this.Options != null && this.Options.HintTextMap.TryGetValue(type.Name, out hintText)) 231MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
31breadCrumbText = boundModelItem.ItemType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (4)
1096string name = rootItem.ItemType.Name; 1148MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error); 1706commandParameters.Add(typeof(BreakpointTypes).Name, BreakpointTypes.Bounded); 1709commandParameters.Add(typeof(SourceLocation).Name, debuggerService.SelectedLocation);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
653DateTime.Now.ToLocalTime(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
636static string ITextExpressionInterfaceName = typeof(ITextExpression).Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\FilterableData.cs (1)
63return string.Format(CultureInfo.CurrentUICulture, "{0}:({1})", base.ToString(), typeof(TData).Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (2)
276errorTitle = err.GetType().Name; 583orderby type.Namespace, type.Name
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
406typeName = type.Name; 791return this.type.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
26target = editedType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
105string errorText = string.Format(CultureInfo.CurrentCulture, SR.CouldNotGenerateView, modelItem.ItemType.Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
765return this.owner.GetType().Name; 773!string.IsNullOrEmpty(owner.Item.ItemType.Name)) 775return owner.Item.ItemType.Name; 787return this.owner.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
933automationId = this.owner.GetType().Name; 956return this.owner.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (15)
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture))); 452this.defaultCompositeView.GetType().Name, this.GetType().Name, this.defaultCompositeView.GetHashCode())); 484container.GetType().Name, this.GetType().Name, container.GetHashCode())); 502container.GetType().Name, this.GetType().Name)); 547DateTime.Now.ToLocalTime(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource)); 642DateTime.Now.ToLocalTime(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource)); 650DateTime.Now.ToLocalTime(), this.GetType().Name)); 814DateTime.Now.ToLocalTime(), this.GetType().Name, this.IsMouseCaptured)); 1119StringBuilder name = new StringBuilder(itemType.Name); 1123name.Append(argument.Name); 1131return itemType.Name; 1147return this.owner.GetType().Name;
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (1)
636throw SQL.UnsupportedColumnTypeForSqlProvider(column.ColumnName, column.DataType.Name);
fx\src\data\System\Data\CodeGen\datacache.cs (5)
102lookupIdentifiers[p.Name] = '_' + p.Name; 822errorList.Add(Res.GetString(Res.CodeGen_TypeCantBeNull, col.ColumnName, col.DataType.Name)); 835errorList.Add(Res.GetString(Res.CodeGen_NoCtor0, col.ColumnName, col.DataType.Name)); 869errorList.Add(Res.GetString(Res.CodeGen_NoCtor1, col.ColumnName, col.DataType.Name));
fx\src\data\System\Data\Common\AdapterUtil.cs (33)
280ObjectDisposedException e = new ObjectDisposedException(instance.GetType().Name); 409return ADP.ArgumentOutOfRange(Res.GetString(Res.ADP_InvalidEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 413return ADP.ArgumentOutOfRange(Res.GetString(Res.ADP_NotSupportedEnumerationValue, type.Name, value, method), type.Name); 935return Argument(Res.GetString(Res.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name)); // MDAC 68201 938return ArgumentNull(parameter, Res.GetString(Res.ADP_CollectionNullValue, collection.Name, itemType.Name)); 941return IndexOutOfRange(Res.GetString(Res.ADP_CollectionIndexInt32, index.ToString(CultureInfo.InvariantCulture), collection.Name, count.ToString(CultureInfo.InvariantCulture))); 944return IndexOutOfRange(Res.GetString(Res.ADP_CollectionIndexString, itemType.Name, propertyName, propertyValue, collection.Name)); 947return InvalidCast(Res.GetString(Res.ADP_CollectionInvalidType, collection.Name, itemType.Name, invalidValue.GetType().Name)); 950return Argument(Res.GetString(Res.ADP_CollectionUniqueValue, itemType.Name, propertyName, propertyValue)); 953return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name)); 956return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name)); 992return DataMapping(Res.GetString(Res.ADP_ColumnSchemaMismatch, srcColumn, srcType.Name, column.ColumnName, column.DataType.Name)); 1230return InvalidCast(Res.GetString(Res.ADP_InvalidImplicitConversion, fromtype.Name, totype)); 1373return DataAdapter(Res.GetString(Res.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString())); 1376return InvalidOperation(Res.GetString(Res.ADP_UninitializedParameterSize, index.ToString(CultureInfo.InvariantCulture), dataType.Name)); 1379return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterType, cmd.GetType().Name)); 1382return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterSize, cmd.GetType().Name)); 1385return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterScale, cmd.GetType().Name, type)); 1570return Argument(Res.GetString(Res.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name)); 1600string message = Res.GetString(Res.ADP_ParameterConversionFailed, value.GetType().Name, destType.Name); 1640return InvalidOperation(Res.GetString(Res.ADP_ParallelTransactionsNotSupported, obj.GetType().Name)); 1643return InvalidOperation(Res.GetString(Res.ADP_TransactionZombied, obj.GetType().Name));
fx\src\data\System\Data\DataColumn.cs (1)
251throw ExceptionBuilder.AutoIncrementCannotSetIfHasData(DataType.Name);
fx\src\data\System\Data\DataException.cs (4)
317string msg = Res.GetString(Res.ADP_InvalidEnumerationValue, typeof(T).Name, value.ToString()); 689return _Argument(innerException.Message + Res.GetString(Res.DataColumn_SetFailed, value.ToString(), column.ColumnName, type.Name), innerException); 1158return _InvalidEnumArgumentException(Res.GetString(Res.ADP_InvalidEnumerationValue, enumType.Name, mode)); 1247return _Data(Res.GetString(Res.DataStorage_AggregateException, aggregateType.ToString(), type.Name));
fx\src\data\System\Data\DataTableReader.cs (1)
411return ((Type)GetFieldType(ordinal)).Name;
fx\src\data\System\Data\Filter\FilterException.cs (1)
206return _Overflow(Res.GetString(Res.Expr_Overflow, type.Name));
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
41return ADP.ArgumentOutOfRange(Res.GetString(Res.ODBC_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
82throw new ObjectDisposedException(GetType().Name);
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (4)
229return ADP.DataAdapter(Res.GetString(Res.OleDb_SignMismatch, type.Name)); 232return ADP.DataAdapter(Res.GetString(Res.OleDb_DataOverflow, type.Name)); 235return ADP.DataAdapter(Res.GetString(Res.OleDb_CantCreate, type.Name)); 238return ADP.DataAdapter(Res.GetString(Res.OleDb_Unavailable, type.Name));
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
228throw new ObjectDisposedException(GetType().Name); 237throw new ObjectDisposedException(GetType().Name);
fx\src\data\System\Data\PrimaryKeyTypeConverter.cs (1)
39 return (new DataColumn[] {}).GetType().Name;
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
92int offset = Marshal.OffsetOf(fi.DeclaringType, fi.Name).ToInt32();
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (2)
116return string.Format(@"{0}.{1}", methodBase.DeclaringType.Name, methodBase.Name);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
381return ADP.ArgumentOutOfRange(Res.GetString(Res.SQL_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 779return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadCannotConvertValue, sourcetype.Name, metatype.TypeName), e);
System.Data.DataSetExtensions (2)
System\Data\DataSetUtil.cs (2)
78return ArgumentOutOfRange(Strings.DataSetLinq_InvalidEnumerationValue(type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
System.Data.Entity (161)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
340Debug.Assert(type != null, string.Format(CultureInfo.InvariantCulture, "{0}.Type is null in DbExpression constructor", this.GetType().Name));
System\Data\Common\CommandTrees\DbCommandTree.cs (2)
124dumper.Begin(this.GetType().Name, attrs); 148dumper.End(this.GetType().Name);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1828foundValues.Add(new KeyValuePair<string, TRequired>(pi.Name, (TRequired)pi.GetValue(instance, null)));
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (11)
136throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Unary_CollectionRequired(typeof(TExpressionType).Name), "argument"); 146throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binary_CollectionsRequired(typeof(TExpressionType).Name)); 152throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binary_CollectionsRequired(typeof(TExpressionType).Name)); 164throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(left.ResultType).Identity, typeof(TExpressionType).Name), "left"); 169throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(right.ResultType).Identity, typeof(TExpressionType).Name), "right"); 769value.GetType().Name, 771clrEnumUnderlyingType.Name), 1029throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbTreatExpression).Name)); 1055throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbOfTypeExpression).Name)); 1079throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbIsOfExpression).Name)); 2089if (clrEnumType.Name != edmEnumType.Name
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (2)
360Begin(expr.GetType().Name, attrs); 407End(expr.GetType().Name);
System\Data\Common\CommandTrees\Internal\Validator.cs (2)
159ThrowInvalid(Strings.Cqt_Validator_InvalidOtherWorkspaceMetadata(typeof(TMetadata).Name)); 164ThrowInvalid(Strings.Cqt_Validator_InvalidIncorrectDataSpaceMetadata(typeof(TMetadata).Name, Enum.GetName(typeof(DataSpace), this.requiredSpace)));
System\Data\Common\EntityUtil.cs (7)
942(Nullable.GetUnderlyingType(destinationType) ?? destinationType).Name, 949(Nullable.GetUnderlyingType(destinationType) ?? destinationType).Name, 950className, propertyName, value.GetType().Name)); 973return EntityUtil.InvalidOperation(System.Data.Entity.Strings.Materializer_NullReferenceCast(destinationType.Name)); 1721return new InvalidCastException(System.Data.Entity.Strings.InvalidEntityParameterType(invalidValue.GetType().Name)); 1827return EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.ADP_InvalidEnumerationValue(type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
401&& test.Method.Name == "IsDBNull")
System\Data\Common\Internal\Materialization\Shaper.cs (4)
833return (T)type.GetMethod(MethodBase.GetCurrentMethod().Name, BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, new object[] { reader, ordinal }); 955(Nullable.GetUnderlyingType(typeof(TProperty)) ?? typeof(TProperty)).Name, 963(Nullable.GetUnderlyingType(typeof(TProperty)) ?? typeof(TProperty)).Name, 964_typeName, _propertyName, resultType.Name));
System\Data\Common\Internal\Materialization\Translator.cs (2)
1380string propertyName = propertyAccessor.Name.Substring(4); // substring to strip "set_" 1383Expression valueReaderWithErrorHandling = Emit_Shaper_GetPropertyValueWithErrorHandling(propertyType, scalarColumnMap.ColumnPos, propertyName, propertyAccessor.DeclaringType.Name, scalarColumnMap.Type);
System\Data\EntityClient\EntityConnection.cs (2)
728throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("BeginTransaction", _storeConnection.GetType().Name)); 1276throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("CreateConnection", factory.GetType().Name));
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
131extent.Name, extent.GetType().Name));
System\Data\Metadata\Edm\ComplexType.cs (1)
110: base(EntityUtil.GenericCheckArgumentNull(clrType, "clrType").Name, clrType.Namespace ?? string.Empty,
System\Data\Metadata\Edm\EdmProperty.cs (1)
64System.Diagnostics.Debug.Assert(name == propertyInfo.Name, "different PropertyName");
System\Data\Metadata\Edm\EntityType.cs (1)
246: base(EntityUtil.GenericCheckArgumentNull(type, "type").Name, type.Namespace ?? string.Empty,
System\Data\Metadata\Edm\EnumType.cs (1)
87base(clrType.Name, clrType.Namespace ?? string.Empty, DataSpace.OSpace)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (6)
129DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) }); 171DynamicMethod method = CreateDynamicMethod(ci.DeclaringType.Name, typeof(object), Type.EmptyTypes); 221DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(object), new Type[] { typeof(object) }); 315DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) }); 386gen.Emit(OpCodes.Ldstr, mi.DeclaringType.Name); 387gen.Emit(OpCodes.Ldstr, mi.Name.Substring(4)); // substring to strip "set_"
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (1)
49: this(ClrComplexType.CreateReadonlyClrComplexType(type, type.Namespace ?? string.Empty, type.Name), isCollection)
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (1)
128return new MetadataProperty(_propertyInfo.Name, _attribute.Type, _attribute.IsCollectionType,
System\Data\Metadata\Edm\NavigationProperty.cs (1)
47System.Diagnostics.Debug.Assert(name == propertyInfo.Name, "different PropertyName?");
System\Data\Metadata\Edm\PrimitiveType.cs (1)
69: this(EntityUtil.GenericCheckArgumentNull(clrType, "clrType").Name, clrType.Namespace,
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (11)
294string cspaceTypeName = String.IsNullOrEmpty(typeAttribute.Name) ? clrType.Name : typeAttribute.Name; 540SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_InvalidNavPropReturnType(propertyInfo.Name, propertyInfo.DeclaringType.FullName, propertyInfo.PropertyType.FullName), null)); 559NavigationProperty navigationProperty = new NavigationProperty(propertyInfo.Name, TypeUsage.Create(propertyType), propertyInfo); 576propertyInfo.Name, propertyInfo.DeclaringType.FullName, attribute.TargetRoleName, attribute.RelationshipName), navigationProperty)); 596propertyInfo.Name, propertyInfo.DeclaringType.FullName, attribute.RelationshipName), declaringType)); 630SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_ScalarPropertyNotPrimitive(property.Name, property.DeclaringType.FullName, property.PropertyType.FullName), null)); 641member = new EdmProperty(property.Name, 669clrProperty.Name, 678clrProperty.Name, 703SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_ComplexPropertyNotComplex(clrProperty.Name, clrProperty.DeclaringType.FullName, clrProperty.PropertyType.FullName), null)); 707EdmProperty newProperty = new EdmProperty(clrProperty.Name,
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (9)
90if (SessionData.ConventionCSpaceTypeNames.TryGetValue(type.Name, out pair)) 101SessionData.EdmItemErrors.Add(new EdmItemError(Strings.Validator_OSpace_Convention_MultipleTypesWithSameName(type.Name), pair.Key)); 577string message = Strings.Validator_OSpace_Convention_ScalarPropertyMissginGetterOrSetter(clrProperty.Name, type.FullName, type.Assembly.FullName); 584string message = Strings.Validator_OSpace_Convention_NonPrimitiveTypeProperty(clrProperty.Name, type.FullName, clrProperty.PropertyType.FullName); 651Strings.Validator_OSpace_Convention_ScalarPropertyMissginGetterOrSetter(clrProperty.Name, type.FullName, type.Assembly.FullName), 721return clrProperty.Name == cspaceMember.Name; 726return !clrProperty.PropertyType.IsValueType && !clrProperty.PropertyType.IsAssignableFrom(typeof(string)) && clrProperty.Name == cspaceMember.Name; 736return type.Name == cspaceType.Name; 751bool isKeyMember = Helper.IsEntityType(cspaceType) && ((EntityType)cspaceType).KeyMemberNames.Contains(clrProperty.Name);
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
561throw EntityUtil.ExpectedReferenceGotCollection(typeof(TTargetEntity).Name, targetRoleName, relationshipName); 602throw EntityUtil.ExpectedCollectionGotReference(typeof(TTargetEntity).Name, targetRoleName, relationshipName); 868throw EntityUtil.ExpectedCollectionGotReference(typeof(TTargetEntity).Name, targetRoleName, relationshipName); 887throw EntityUtil.ExpectedReferenceGotCollection(typeof(TTargetEntity).Name, targetRoleName, relationshipName);
System\Data\Objects\DataRecordObjectView.cs (1)
86if (indexer.Name == "Item")
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
1132string clrTypeName = clrType.Name; 1151returnName += clrType.Name;
System\Data\Objects\ELinq\InitializerFacet.cs (3)
36private static readonly string s_identifierPrefix = typeof(InitializerMetadata).Name; 325builder.Append("." + member.Name); 433builder.Append("." + binding.Member.Name);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (9)
143if (m.Method.Name.StartsWith("op_", StringComparison.Ordinal)) 151switch (m.Method.Name) 206switch (m.Method.Name) 229if (m.Method.Name == "Equals" && m.Arguments.Count > 1) 238if (m.Method.Name == "CompareString" && m.Method.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators") 247if (m.Method.Name == "Compare" && m.Arguments.Count > 1 && m.Method.ReturnType == typeof(int)) 258if (m.Method.Name == "Equals" && m.Arguments.Count > 0) 272if (m.Method.Name == "CompareTo" && m.Arguments.Count == 1 && m.Method.ReturnType == typeof(int)) 281if (m.Method.Name == "Contains" && m.Arguments.Count == 1) {
System\Data\Objects\ELinq\MethodCallTranslator.cs (14)
55if (s_objectQueryTranslators.TryGetValue(linq.Method.Name, out builderTranslator)) 69switch(linq.Method.Name) 306leftName = newExpression.Members[0].Name; 307rightName = newExpression.Members[1].Name; 328return GetType().Name; 336return ((method.IsPublic || (method.IsAssembly && (method.Name == "MergeAs" || method.Name == "IncludeSpan"))) && 873return parent.TranslateIntoCanonicalFunction(call.Method.Name, call, linqArguments); 1424return parent.TranslateIntoCanonicalFunction(call.Method.Name, call, call.Arguments.ToArray()); 1533return GetType().Name; 1609throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name)); 2054call.Method.Name, operand.ResultType.EdmType.Name)); 2756throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name)); 2877throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name));
System\Data\Objects\ELinq\ReflectionUtil.cs (2)
442description.Append(method.Name).Append("("); 477description.Append(type.Name);
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (1)
233canonicalFunctionName = "ST" + method.Name;
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (1)
154canonicalFunctionName = "ST" + property.Name;
System\Data\Objects\ELinq\Translator.cs (7)
40return this.GetType().Name; 191throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnrecognizedMember(linq.Member.Name)); 228propertyInfo = propertyInfo.DeclaringType.GetGenericTypeDefinition().GetProperty(propertyInfo.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public); 288string name = clrMember.Name; 461if (propertyInfo.Name == "Count" && 526return GetType().Name; 560return parent.TranslateIntoCanonicalFunction(call.Member.Name, call, call.Expression);
System\Data\Objects\ELinq\TypeSystem.cs (4)
115name = field.Name; 127name = property.Name; 148throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_NotPropertyOrField(member.Name)); 245PropertyInfo interfaceProp = interfaceType.GetProperty(propertyInfo.Name, BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\Internal\EntityProxyFactory.cs (21)
315propertyInfo.Name), 318string propertyName = propertyInfo.Name; 352string propertyName = propertyInfo.Name; 714string baseName = BaseType.Name.Length <= 20 ? BaseType.Name : BaseType.Name.Substring(0, 20); 743MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 763MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 890FieldBuilder interceptorField = typeBuilder.DefineField(GetInterceptorFieldName(baseProperty.Name), interceptorType, FieldAttributes.Private | FieldAttributes.Static); 893MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 993gen.Emit(OpCodes.Ldstr, _baseGetters[i].Name); 1016gen.Emit(OpCodes.Ldstr, _baseSetters[i].Name); 1072_implementIEntityWithChangeTracker = (null == baseType.GetInterface(typeof(IEntityWithChangeTracker).Name)); 1073_implementIEntityWithRelationships = (null == baseType.GetInterface(typeof(IEntityWithRelationships).Name)); 1160DynamicMethod initializeEntityCollections = LightweightCodeGenerator.CreateDynamicMethod(proxyType.Name + "_InitializeEntityCollections", typeof(IEntityWrapper), new Type[] { typeof(IEntityWrapper) }); 1230MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1327generator.Emit(OpCodes.Ldstr, baseProperty.Name); 1333generator.Emit(OpCodes.Ldstr, baseProperty.Name); 1354MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1376MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1627MethodBuilder proxyGetObjectData = typeBuilder.DefineMethod(_getObjectDataMethod.Name,
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (2)
130_propertiesWithBaseGetter = new HashSet<string>(baseGetters.Select(p => p.Name)); 131_propertiesWithBaseSetter = new HashSet<string>(baseSetters.Select(p => p.Name));
System\Data\Objects\ObjectContext.cs (1)
859return bodyAsMember.Member.Name;
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (1)
369if (!this.QueryState.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.OSpace).TryGetType(clrOfType.Name, clrOfType.Namespace ?? string.Empty, out ofType) ||
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (1)
219return ((Type)GetFieldType(ordinal)).Name;
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (1)
172return (GetFieldType(ordinal)).Name;
System\Data\Objects\ObjectStateManager.cs (1)
351throw EntityUtil.EntityTypeDoesNotMatchEntitySet(wrappedObject.Entity.GetType().Name, TypeHelpers.GetFullName(entitySet), argumentName);
System\Data\Objects\ObjectViewFactory.cs (2)
235Type[] viewDataInterfaces = objectViewDataType.FindInterfaces((Type type, object unusedFilter) => type.Name == genericObjectViewDataInterfaceType.Name, null);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (2)
153if (TryGetColumnOrdinalFromReader(reader, prop.Name, out ordinal) && 161new EdmProperty(prop.Name, TypeUsage.Create(modelType))));
System\Data\Query\InternalTrees\Dump.cs (1)
561using (new AutoXml(this, v.GetType().Name, attrs)) {
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
647PlanCompiler.Assert(2 == n.Children.Count, string.Format(CultureInfo.InvariantCulture, "Non-Binary {0} encountered", n.Op.GetType().Name));
System\Data\SqlClient\SqlGen\SqlGenerator.cs (4)
1096throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name)); 1100throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name)); 1117throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name)); 1121throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
System\Data\SqlClient\SqlTypesAssembly.cs (5)
541if (convertTo.Name == "SqlString") 565Debug.Assert(sqlBytesType.Name == "SqlBytes", "byte[] argument used with non-SqlBytes static constructor method?"); 575Debug.Assert(sqlCharsType.Name == "SqlChars", "String argument used with non-SqlChars static constructor method?"); 587Debug.Assert(sqlStringType.Name == "SqlString", "String argument used with non-SqlString static constructor method?"); 597Debug.Assert(sqlXmlType.Name == "SqlXml", "Stream argument used with non-SqlXml static constructor method?");
System.Data.Entity.Design (9)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (3)
362string location = Strings.DbProviderServicesInformationLocationPath(providerConnection.GetType().Name, ssdlName); 370location = Strings.DbProviderServicesInformationLocationPath(typeof(DbProviderServices).Name, csdlName); 378location = Strings.DbProviderServicesInformationLocationPath(providerConnection.GetType().Name, DbProviderManifest.StoreSchemaMapping);
System\Data\EntityModel\Emitters\Utils.cs (6)
69if (!typeReservedNames.ContainsKey(member.Name)) 71typeReservedNames.Add(member.Name, typeof(ComplexType)); 80if (typeReservedNames.ContainsKey(member.Name)) 82if (typeReservedNames[member.Name] == typeof(ComplexType)) 85typeReservedNames[member.Name] = null; 90typeReservedNames.Add(member.Name, typeof(EntityType));
System.Data.Linq (218)
ChangeTracker.cs (3)
593throw Error.InconsistentAssociationAndKeyChange(accThis.Member.Name, mm.Member.Name); 631currentDiscriminator, original.GetType().Name, currentTypeFromDiscriminator);
DataContext.cs (2)
753_miExecuteQuery = typeof(DataContext).GetMethods().Single(m => m.Name == "ExecuteQuery" && m.GetParameters().Length == 2); 1639return "Table(" + typeof(TEntity).Name + ")";
DataServices.cs (2)
478switch (mc.Method.Name) { 537if (mex != null && mex.Method.Name == "op_Equality" && mex.Arguments.Count == 2) {
DataShape.cs (2)
254throw Error.SubqueryNotSupportedOnType(mi.Name, mi.DeclaringType); 274throw Error.SubqueryDoesNotSupportOperator(m.Method.Name);
EntitySetDataBindingList.cs (2)
32throw Error.EntitySetDataBindingWithAbstractBaseClass(type.Name); 35throw Error.EntitySetDataBindingWithNonPublicDefaultConstructor(type.Name);
Mapping\Accessors.cs (3)
30"xget_" + fi.Name, 42"xset_" + fi.Name, 107"xset_" + pi.Name,
Mapping\AttributedMetaModel.cs (19)
89this.dbName = (das != null && das.Length > 0) ? das[0].Name : this.contextType.Name; 171throw Error.InvalidUseOfGenericMethodAsMappedFunction(mi.Name); 325this.tableName = string.IsNullOrEmpty(attr.Name) ? rowType.Name : attr.Name; 478throw Error.MemberMappedMoreThanOnce(mem.Member.Name); 567throw(Error.PrimaryKeyInSubTypeNotSupported(this.type.Name, mm.Name)); 679get { return this.type.Name; } 819throw Error.MappingOfInterfacesMemberIsNotSupported(mi.DeclaringType.Name, mi.Name); 821throw Error.UnmappedClassMember(mi.DeclaringType.Name, mi.Name); 883throw Error.NoResultTypesDeclaredForFunction(mi.Name); 886throw Error.TooManyResultTypesDeclaredForFunction(mi.Name); 947get { return this.methodInfo.Name; } 954return this.methodInfo.Name; 1042throw Error.BadStorageProperty(this.attr.Storage, mi.DeclaringType, mi.Name); 1051throw Error.IncorrectAutoSyncSpecification(mi.Name); 1093get { return this.member.Name; } 1188return this.member.Name; 1240"Load" + this.member.Name,
Mapping\MappedMetaModel.cs (33)
100if (!this.types.ContainsKey(rowType.Name)) { 102if (!this.types.ContainsKey(rowType.Name)) { 103this.types.Add(rowType.Name, rowType); 114if (!this.types.ContainsKey(rowType.Name)) { 116if (!this.types.ContainsKey(rowType.Name)) { 117this.types.Add(rowType.Name, rowType); 223if (string.Compare(rootMapping.Name, type.Name, StringComparison.Ordinal) == 0 431throw Error.NoDiscriminatorFound(type.Name); 472throw Error.MemberMappedMoreThanOnce(mem.Member.Name); 604throw (Error.PrimaryKeyInSubTypeNotSupported(this.type.Name, mm.Name)); 644names[mmap.MemberName + ":" + currentType.Name] = mmap; 654string name = fi.Name + ":" + fi.DeclaringType.Name; 675string name = pi.Name + ":" + pi.DeclaringType.Name; 703if(String.Compare(mi.Name, orphan.Value.MemberName, StringComparison.Ordinal)==0) { 704throw Error.MappedMemberHadNoCorrespondingMemberInType(orphan.Value.MemberName, type.Name); 753get { return this.type.Name; } 896throw Error.MappingOfInterfacesMemberIsNotSupported(mi.DeclaringType.Name, mi.Name); 898throw Error.UnmappedClassMember(mi.DeclaringType.Name, mi.Name); 973throw Error.BadStorageProperty(this.memberMap.StorageMemberName, mi.DeclaringType, mi.Name); 983throw Error.IncorrectAutoSyncSpecification(mi.Name); 1008this.mappedName = this.memberMap.DbName != null ? this.memberMap.DbName : this.member.Name; 1048get { return this.member.Name; } 1145"Load" + this.member.Name, 1347throw Error.NoResultTypesDeclaredForFunction(method.Name); 1350throw Error.TooManyResultTypesDeclaredForFunction(method.Name); 1417get { return this.method.Name; } 1557get { return this.type.Name; } 1745get { return this.member.Name; } 1802get { return this.member.Name; }
parent\DbmlShared\Mapping.cs (1)
61if (string.Compare(map.Name, type.Name, StringComparison.Ordinal) == 0
SortableBindingList.cs (1)
65throw new MissingMemberException(typeof(T).Name, prop.Name);
SqlClient\Common\InheritanceRules.cs (1)
50return mi.Name;
SqlClient\Common\SqlNode.cs (4)
1712if (argmi.Name == mi.Name) { 1718if (ma.Member.Name == mi.Name) {
SqlClient\Common\TypeSystem.cs (3)
121_sequenceMethods = typeof(Enumerable).GetMethods(BindingFlags.Static | BindingFlags.Public).ToLookup(m => m.Name); 137_queryMethods = typeof(Queryable).GetMethods(BindingFlags.Static | BindingFlags.Public).ToLookup(m => m.Name); 149.FirstOrDefault(m => m.Name == name && ArgsMatchExact(m, args, typeArgs));
SqlClient\Query\MethodCallConverter.cs (16)
47return !call.Method.IsStatic && call.Method.Name == "CompareTo" && call.Arguments.Count == 1 && call.Method.ReturnType == typeof(int); 51return call.Method.IsStatic && call.Method.Name == "Compare" && call.Arguments.Count > 1 && call.Method.ReturnType == typeof(int); 80call.Method.Name == "CompareString"; 89mc.Method.DeclaringType.FullName == "Microsoft.VisualBasic.Interaction" && mc.Method.Name == "IIf"; 97return TypeSystem.IsNullableType(m.Expression.ClrType) && m.Member.Name == "Value"; 101return TypeSystem.IsNullableType(m.Expression.ClrType) && m.Member.Name == "HasValue"; 106switch (mc.Method.Name) { 132return mc.Method.Name == "Equals" && mc.Arguments.Count == 1 || 133mc.Method.Name == "GetType" && mc.Arguments.Count == 0; 219if (mc.Method.Name == "Equals" && mc.Arguments.Count == 2) { 222else if (mc.Method.DeclaringType == typeof(string) && mc.Method.Name == "Concat") { 257switch (mc.Method.Name) { 296if (mc.Method.Name == "Equals" && mc.Arguments.Count == 1) { 299else if (mc.Method.Name == "GetType" && mc.Arguments.Count == 0) { 326throw Error.IifReturnTypesMustBeEqual(mc.Arguments[1].ClrType.Name, mc.Arguments[2].ClrType.Name);
SqlClient\Query\QueryConverter.cs (17)
110throw Error.InvalidMethodExecution(((SqlMethodCall)retNode).Method.Name); 939if (mce != null && IsSequenceOperatorCall(mce) && mce.Method.Name == "Skip" && mce.Arguments.Count == 2) { 1867if (ma.Member.Name == "Count" && TypeSystem.IsSequenceType(ma.Expression.Type)) { 1886if (mc.Method.Name == "ChangeType") { 1895throw Error.MethodFormHasNoSupportConversionToSql(mc.Method.Name, mc.Method); 1902switch (mc.Method.Name) { 1919return this.VisitUserQuery((string)GetValue(mc.Arguments[0], mc.Method.Name), GetArray(mc.Arguments[1]), mc.Type); 1928&& mc.Method.Name == "Contains" 2023if (IsSequenceOperatorCall(mc) && mc.Method.Name == methodName) { 2035switch (mc.Method.Name) { 2310throw Error.QueryOperatorOverloadNotSupported(mc.Method.Name); 2312throw Error.QueryOperatorNotSupported(mc.Method.Name); 2326switch (mc.Method.Name) { 2364throw Error.QueryOperatorOverloadNotSupported(mc.Method.Name); 2366throw Error.QueryOperatorNotSupported(mc.Method.Name); 2368throw Error.InvalidSequenceOperatorCall(mc.Method.Name); 2670if (mc.Arguments.Count==2 && mc.Method.Name=="op_Equality") {
SqlClient\Query\SqlBinder.cs (2)
850throw Error.MemberNotPartOfProjection(m.Member.DeclaringType, m.Member.Name); 929if (m.Member.Name == "Key") {
SqlClient\Query\SqlFlattener.cs (2)
177throw Error.InvalidGroupByExpressionType(gex.ClrType.Name); 248throw Error.InvalidOrderByExpression(obex.Expression.ClrType.Name);
SqlClient\Query\SqlFormatter.cs (8)
703sb.Append(sox.ClrType.Name); 710sb.Append(sox.ArgMembers[i].Name); 719if (ename != ma.Member.Name) { 720sb.Append(ma.Member.Name); 745sb.Append(m.Member.Name); 1218return ((SqlMember)exp).Member.Name; 1278sb.Append(valueType.Name); 1390sb.Append(mc.Method.Name);
SqlClient\Query\SqlMethodCallConverter.cs (84)
171&& (mc.Method.Name == "op_Implicit" || mc.Method.Name == "op_Explicit")){ 178if (mc.Method.IsStatic && mc.Method.Name == "Compare" && mc.Method.ReturnType == typeof(int)) { 186switch (mc.Method.Name) { 205if (mc.Method.Name == "GetValueOrDefault" && TypeSystem.IsNullableType(mc.Object.ClrType)) { 216if (mc.Method.Name.StartsWith("DateDiff", StringComparison.Ordinal) && mc.Arguments.Count == 2) { 218if (mc.Method.Name == "DateDiff" + datePart) { 227else if (mc.Method.Name == "Like") { 236else if (mc.Method.Name == "RawLength") { 245switch (mc.Method.Name) { 269switch (mc.Method.Name) { 294switch (mc.Method.Name) { 308switch (mc.Method.Name) { 334switch (mc.Method.Name) { 345switch (mc.Method.Name) { 352if (mc.Method.Name.StartsWith("To", StringComparison.Ordinal)) { 365if (mc.Method.Name == "Concat") { 370switch (mc.Method.Name) { 423switch (mc.Method.Name) { 486call.Method.Name == "CompareString"; 491(mc.Method.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.LikeOperator" && mc.Method.Name == "LikeString") 492|| (mc.Method.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators" && mc.Method.Name == "LikeString"); 498switch (mc.Method.Name) { 530return m.Expression.ClrType == typeof(string) && m.Member.Name == "Length"; 534return m.Expression.ClrType == typeof(Binary) && m.Member.Name == "Length"; 555string datePart = GetDatePart(m.Member.Name); 559switch (m.Member.Name) { 574string datePart = GetDatePart(m.Member.Name); 578switch (m.Member.Name) { 591switch (m.Member.Name) { 907if (mc.Method.Name == "op_Explicit" || mc.Method.Name == "op_Implicit") { 912else if (mc.Method.Name == "Compare" && mc.Arguments.Count == 2 && mc.Method.ReturnType == typeof(int)) { 949if (mc.Method.Name == "Equals" && mc.Arguments.Count == 1) { 952else if (mc.Method.Name == "GetValueOrDefault" && mc.Method.DeclaringType.IsGenericType 956else if (mc.Method.Name == "ToString" && mc.Arguments.Count == 0) { 990return Error.MethodFormHasNoSupportConversionToSql(mc.Method.Name, mc.Method); 1013string name = mc.Method.Name; 1016if (mc.Method.Name == "DateDiff" + datePart) { 1056if (mc.Method.Name == "CompareTo") { 1059else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1060|| (mc.Method.Name == "AddTicks")) { 1082else if (mc.Method.Name == "AddMonths") { 1086else if (mc.Method.Name == "AddYears") { 1090else if (mc.Method.Name == "AddMilliseconds") { 1096else if (mc.Method.Name == "AddSeconds") { 1100else if (mc.Method.Name == "AddMinutes") { 1104else if (mc.Method.Name == "AddHours") { 1108else if (mc.Method.Name == "AddDays") { 1118if (mc.Method.Name == "CompareTo") { 1121else if ((mc.Method.Name == "Add" && mc.Arguments.Count == 1 && mc.Arguments[0].ClrType == typeof(TimeSpan)) 1122|| (mc.Method.Name == "AddTicks")) { 1141else if (mc.Method.Name == "AddMonths") { 1145else if (mc.Method.Name == "AddYears") { 1149else if (mc.Method.Name == "AddMilliseconds") { 1155else if (mc.Method.Name == "AddSeconds") { 1159else if (mc.Method.Name == "AddMinutes") { 1163else if (mc.Method.Name == "AddHours") { 1167else if (mc.Method.Name == "AddDays") { 1177if (mc.Method.Name == "Add") { 1180else if (mc.Method.Name == "Subtract") { 1183else if (mc.Method.Name == "CompareTo") { 1186else if (mc.Method.Name == "Duration") { 1192else if (mc.Method.Name == "Negate") { 1204switch (mc.Method.Name) { 1395switch (mc.Method.Name) { 1412switch (mc.Method.Name) { 1434if (mc.Method.Name.StartsWith("To", StringComparison.Ordinal)) { 1448if (mc.Method.Name == "Concat") { 1479else if ((mc.Method.Name == "Equals") && (mc.Arguments.Count == 2)) { 1482else if ((mc.Method.Name == "Compare") && (mc.Arguments.Count == 2)) { 1502switch (mc.Method.Name) { 1976switch (mc.Method.Name) { 2169if (baseClrTypeOfExpr == typeof(string) && member.Name == "Length") { 2175else if (baseClrTypeOfExpr == typeof(Binary) && member.Name == "Length") { 2179string datePart = GetDatePart(member.Name); 2183else if (member.Name == "Date") { 2208else if (member.Name == "DateTime") { 2213else if (member.Name == "TimeOfDay") { 2225else if (member.Name == "DayOfWeek") { 2240switch (member.Name) { 2333throw Error.MemberCannotBeTranslated(member.DeclaringType, member.Name); 2336throw Error.MemberCannotBeTranslated(member.DeclaringType, member.Name); 2386switch (mc.Method.Name) {
SqlClient\Query\SqlNamer.cs (1)
187string n = ma.Member.Name;
SqlClient\Query\SqlSupersetValidator.cs (1)
96throw Error.MethodHasNoSupportConversionToSql(mc.Method.Name);
SqlClient\Query\Translator.cs (1)
231if (exp.Type != m.Expression.Type && m.Member.Name == "Count" && TypeSystem.IsSequenceType(exp.Type)) {
SqlClient\Reader\ObjectReaderCompiler.cs (3)
282"Read_" + elementType.Name, 1109throw Error.CannotAssignToMember(m.Name); 2117name = "Get" + valueType.Name;
SqlClient\SqlProvider.cs (6)
1064switch (mce.Method.Name) { 1068sequenceMethod = TypeSystem.FindSequenceMethod(mce.Method.Name, sequence); 1176writer.WriteLine("-- Context: {0}({1}) Model: {2} Build: {3}", this.GetType().Name, this.Mode, this.services.Model.GetType().Name, ThisAssembly.InformationalVersion); 1350switch (mce.Method.Name) { 1361if (mce.Method.Name == "ExecuteCommand") {
SubqueryRules.cs (1)
20switch (mi.Name) {
System.Data.Services (63)
System\Data\Services\DataServiceConfiguration.cs (13)
499throw new InvalidOperationException(Strings.DataService_AuthorizationReturnedNullQuery(methods[i].Name, methods[i].DeclaringType.FullName)); 554throw new InvalidOperationException(Strings.DataService_AuthorizationReturnedNullQuery(methods[i].Name, methods[i].DeclaringType.FullName)); 903throw new InvalidOperationException(Strings.DataService_QueryInterceptorIncorrectParameterCount(method.Name, type.FullName, parameters.Length)); 911throw new InvalidOperationException(Strings.DataService_AuthorizationMethodVoid(method.Name, type.FullName, expectedReturnType)); 919Strings.DataService_AuthorizationReturnTypeNotAssignable(method.Name, type.FullName, returnType.FullName, expectedReturnType.FullName)); 934throw new InvalidOperationException(Strings.DataService_ParameterIsOut(method.DeclaringType.FullName, method.Name, parameter.Name)); 960Debug.Assert(method.Name == XmlConstants.ClrServiceInitializationMethodName, "Making sure that the method name is as expected"); 1010method.Name, 1036method.Name, 1046method.Name, 1059method.Name, 1071method.Name, 1081method.Name,
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (1)
165this.property = this.rt.TryResolvePropertyName(m.Member.Name);
System\Data\Services\Internal\PropertyAccessVisitor.cs (1)
97if (this.ProcessPropertyAccess(m.Member.Name, ref operand, ref result))
System\Data\Services\MimeTypeAttribute.cs (1)
74.FirstOrDefault(o => o.MemberName == member.Name);
System\Data\Services\Parsing\FunctionDescription.cs (1)
50: this(member, parameterTypes, null, member.Name)
System\Data\Services\Parsing\RequestQueryParser.cs (5)
151.Single(m => m.Name == "Compare" && m.GetParameters()[0].ParameterType == typeof(string)); 156.Single(m => m.Name == "Compare" && m.GetParameters()[0].ParameterType == typeof(bool)); 161.Single(m => m.Name == "Compare" && m.GetParameters()[0].ParameterType == typeof(bool?)); 166.Single(m => m.Name == "Compare" && m.GetParameters()[0].ParameterType == typeof(Guid)); 171.Single(m => m.Name == "Compare" && m.GetParameters()[0].ParameterType == typeof(Guid?));
System\Data\Services\Providers\BaseServiceProvider.cs (3)
722if (this.metadata.ServiceOperations.ContainsKey(method.Name)) 831ServiceOperation operation = new ServiceOperation(method.Name, resultKind, resourceType, container, protocolMethod, parameters); 839this.metadata.ServiceOperations.Add(method.Name, operation);
System\Data\Services\Providers\BasicExpandProvider.cs (9)
44.First(m => m.Name == "OrderBy" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 49.First(m => m.Name == "ThenBy" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 54.First(m => m.Name == "OrderByDescending" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 59.First(m => m.Name == "ThenByDescending" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 64.First(m => m.Name == "Skip" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 69.First(m => m.Name == "Take" && m.IsGenericMethod == true && m.GetParameters().Count() == 2); 1154call.Method.Name == "Select", 1155call.Method.Name + " == 'Select' -- otherwise last expression must be a .Select projection."); 1221if (m.Name == name)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1439ResourceProperty resourceProperty = new ResourceProperty(propertyInfo.Name, kind, propertyType);
System\Data\Services\Providers\ReflectionServiceProvider.cs (23)
61get { return this.Type.Name; } 204if (keyAttribute != null && keyAttribute.KeyNames.Contains(property.Name)) 213if (property.Name == property.DeclaringType.Name + "ID") 218else if (property.Name == "ID") 254if (!propertiesToBeIgnored.Contains(property.Name) && property.CanRead && property.GetIndexParameters().Length == 0) 269throw new InvalidOperationException(Strings.ReflectionProvider_MultipleEntitySetsForSameType(entitySetInfo.Value.Name, property.Name, entitySetType.FullName, resourceType.FullName)); 273throw new InvalidOperationException(Strings.ReflectionProvider_MultipleEntitySetsForSameType(property.Name, entitySetInfo.Value.Name, resourceType.FullName, entitySetType.FullName)); 278ResourceSet resourceContainer = new ResourceSet(property.Name, resourceType); 279entitySets.Add(property.Name, resourceContainer); 283throw new InvalidOperationException(Strings.ReflectionProvider_InvalidEntitySetProperty(property.Name, XmlConvert.EncodeName(((IDataServiceMetadataProvider)this).ContainerName))); 621if (propertiesToBeIgnored.Contains(property.Name)) 721throw new InvalidOperationException(Strings.BadProvider_UnsupportedPropertyType(property.Name, parentResourceType.FullName)); 724throw new InvalidOperationException(Strings.ReflectionProvider_InvalidProperty(property.Name, parentResourceType.FullName)); 729throw new InvalidOperationException(Strings.ReflectionProvider_CollectionOfPrimitiveOrComplexNotSupported(property.Name, parentResourceType.FullName)); 738throw new InvalidOperationException(Strings.ReflectionProvider_EntityPropertyWithNoEntitySet(parentResourceType.FullName, property.Name)); 742if (etagPropertyNames.Remove(property.Name)) 747ResourceProperty resourceProperty = new ResourceProperty(property.Name, kind, resourceType); 758throw new InvalidOperationException(Strings.ReflectionProvider_InvalidProperty(property.Name, parentResourceType.FullName)); 987StringBuilder builder = new StringBuilder(type.Name.Length * 2 * (1 + genericArguments.Length)); 995builder.Append(type.Name); 1020return GetModelTypeName(type.DeclaringType) + "_" + type.Name; 1024return type.Name;
System\Data\Services\Providers\ResourceProperty.cs (1)
254throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName);
System\Data\Services\Serializers\JsonDeserializer.cs (1)
167throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(propertyName, propertyType.Name), e);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
463title = typeof(object).Name;
System\Data\Services\WebUtil.cs (2)
211throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName); 226throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName);
System.Data.Services.Client (68)
parent\Server\System\Data\Services\Epm\EpmSourceTree.cs (4)
78throw new InvalidOperationException(Strings.EpmSourceTree_InvalidSourcePath(epmInfo.DefiningType.Name, sourceName)); 108if (foundProperty.EpmInfo.DefiningType.Name == epmInfo.DefiningType.Name) 110throw new InvalidOperationException(Strings.EpmSourceTree_DuplicateEpmAttrsWithSameSourceName(epmInfo.Attribute.SourcePath, epmInfo.DefiningType.Name));
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (1)
121throw new ArgumentException(Strings.EpmTargetTree_DuplicateEpmAttrsWithSameTargetName(EpmTargetTree.GetPropertyNameFromEpmInfo(currentSegment.EpmInfo), currentSegment.EpmInfo.DefiningType.Name, currentSegment.EpmInfo.Attribute.SourcePath, epmInfo.Attribute.SourcePath));
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (1)
153Debug.Assert(pi != null, "Cannot find property " + srcPathPart + "on type " + element.GetType().Name);
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (8)
249if (visited.Method.IsStatic && visited.Method.Name.StartsWith("op_", StringComparison.Ordinal)) 257switch (visited.Method.Name) 312switch (visited.Method.Name) 335if (visited.Method.IsStatic && visited.Method.Name == "Equals" && visited.Arguments.Count > 1) 344if (!visited.Method.IsStatic && visited.Method.Name == "Equals" && visited.Arguments.Count > 0) 353if (visited.Method.IsStatic && visited.Method.Name == "CompareString" && visited.Method.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators") 362if (!visited.Method.IsStatic && visited.Method.Name == "CompareTo" && visited.Arguments.Count == 1 && visited.Method.ReturnType == typeof(int)) 371if (visited.Method.IsStatic && visited.Method.Name == "Compare" && visited.Arguments.Count > 1 && visited.Method.ReturnType == typeof(int))
System\Data\Services\Client\ALinq\ExpressionWriter.cs (5)
210Debug.Assert(m.Method.Name == "Contains", "m.Method.Name == 'Contains'"); 261throw new NotSupportedException(Strings.ALinq_CantReferToPublicField(m.Member.Name)); 267if (m.Member.Name == "Value" && m.Member.DeclaringType.IsGenericType 278this.builder.Append(m.Member.Name); 495throw new NotSupportedException(Strings.ALinq_CantCastToUnsupportedPrimitive(type.Name));
System\Data\Services\Client\ALinq\InputBinder.cs (2)
154if (currentProp.Name.Equals(targetSet.TransparentScope.Accessor, StringComparison.Ordinal)) 164if (!targetSet.TransparentScope.SourceAccessors.TryGetValue(currentProp.Name, out source))
System\Data\Services\Client\ALinq\PathBox.cs (2)
116sb.Append(pi.Name); 129sb.Append(pi.Name);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
325if (lastExpression != null && (lastExpression.Member.Name != ma.Member.Name)) 327throw new NotSupportedException(Strings.ALinq_PropertyNamesMustMatchInProjections(lastExpression.Member.Name, ma.Member.Name));
System\Data\Services\Client\ALinq\ReflectionUtil.cs (2)
454description.Append(method.Name).Append("("); 489description.Append(type.Name);
System\Data\Services\Client\ALinq\ResourceBinder.cs (9)
110if (call != null && call.Method.Name == "SelectMany") 130Debug.Assert(mce.Method.Name == "Where", "mce.Method.Name == 'Where' -- otherwise this isn't a predicate"); 1423propertyPath.Insert(0, pi.Name); 1767if (member.Name != constructorParams[i].Name) 1786sourceAccessors[member.Name] = inputSourceSet.CreateReference(); 1797sourceAccessors[member.Name] = referencedInputs[0].CreateReference(); 1807string resultAccessor = memberProperties[introducedMemberIndex].Name; 2406return object.ReferenceEquals(left.DeclaringType, right.DeclaringType) && left.Name.Equals(right.Name);
System\Data\Services\Client\ALinq\TypeSystem.cs (1)
139expressionVBMethodMap.TryGetValue(mi.DeclaringType.FullName + "." + mi.Name, out methodName)));
System\Data\Services\Client\ALinq\UriWriter.cs (2)
149throw new NotSupportedException(Strings.ALinq_MemberAccessNotSupported(m.Member.Name)); 259this.uriBuilder.Append(kvp.Key.Name);
System\Data\Services\Client\ClientConvert.cs (2)
439throw new NotSupportedException(Strings.ALinq_CantCastToUnsupportedPrimitive(propertyType.Name)); 523if ((index < 0) && needSystemDataLinqBinary && (type.Name == "Binary"))
System\Data\Services\Client\ClientType.cs (5)
157bool keyProperty = dska != null ? dska.KeyNames.Contains(pinfo.Name) : false; 225string declaringTypeName = this.properties[i].DeclaringType.Name; 483if (userType.Name == name) 697if ((null != type) && type.IsVisible && (wireClassName == type.Name) && userType.IsAssignableFrom(type)) 884this.PropertyName = property.Name;
System\Data\Services\Client\Error.cs (1)
191return Error.NotSupported(Strings.ALinq_MethodNotSupported(m.Method.Name));
System\Data\Services\Client\MemberAssignmentAnalysis.cs (2)
330if (((MemberExpression)p).Member.Name != ((MemberExpression)c).Member.Name)
System\Data\Services\Client\ProjectionPath.cs (1)
57this.Add(new ProjectionPathSegment(this, ((MemberExpression)member).Member.Name, member.Type));
System\Data\Services\Client\ProjectionPathBuilder.cs (1)
175names.Add(member.Member.Name);
System\Data\Services\Client\ProjectionPlanCompiler.cs (14)
293if (m.Method.Name == "Select") 297else if (m.Method.Name == "ToList") 303Debug.Assert(m.Method.Name == "ReferenceEquals", "We don't know how to handle this method, ProjectionAnalyzer updated?"); 555string[] expressionNames = expressions.Skip(1).Select(e => ((MemberExpression)e).Member.Name).ToArray(); 587propertyNames.Add(assignment.Member.Name); 603Expression.Constant(assignment.Member.Name, typeof(string))); 630assignment.Member.Name, 727Expression.Constant(((MemberExpression)path[pathIndex]).Member.Name, typeof(string))); 802ProjectionPathSegment nestedSegment = new ProjectionPathSegment(nestedPath, m.Member.Name, m.Type); 815memberSegment = new ProjectionPathSegment(baseAnnotation.Segment.StartPath, m.Member.Name, m.Type); 952Debug.Assert(call.Method.Name == "Select", "call.Method.Name == 'Select'"); 1014Debug.Assert(call.Method.Name == "ToList", "call.Method.Name == 'ToList'"); 1046if (call.Method.Name == "Select") 1084Debug.Assert(call.Method.Name == "ToList", "call.Method.Name == 'ToList'");
System\Data\Services\Client\Util.cs (1)
464if (property.Name != "Continuation" || !property.CanWrite)
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\Utils.cs (2)
73if (!typeReservedNames.ContainsKey(member.Name)) 75typeReservedNames.Add(member.Name, null);
System.Data.SqlXml (19)
System\Xml\Xsl\IlGen\GenerateHelper.cs (3)
68Type aggType = Type.GetType("System.Xml.Xsl.Runtime." + storageType.Name + "Aggregator"); 123ToAtomicValue = XmlILMethods.GetMethod(typeof(XmlILStorageConverter), storageType.Name + "ToAtomicValue"); 416Debug.Assert(methInfo != null, "Method " + className.Name + "." + methName + " cannot be null.");
System\Xml\Xsl\QIL\QilTypeChecker.cs (2)
904Check(clrTypeValue.IsAssignableFrom(clrType), node, "Literal value must be of type " + clrTypeValue.Name); 909Check(clrTypeClass.IsAssignableFrom(node.GetType()), node, "Node must be instance of " + clrTypeClass.Name);
System\Xml\Xsl\QIL\QilXmlReader.cs (3)
54if (!nameToFactoryMethod.ContainsKey(mi.Name) || nameToFactoryMethod[mi.Name].GetParameters().Length < parms.Length) 55nameToFactoryMethod[mi.Name] = mi;
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (3)
156if (methSearch.Name.Equals(this.name, comparison) && (this.numArgs == -1 || methSearch.GetParameters().Length == this.numArgs)) { 177if (methSearch.Name.Equals(this.name, comparison) && (this.numArgs == -1 || methSearch.GetParameters().Length == this.numArgs)) { 188if (methSearch.Name.Equals(this.name, comparison) && methSearch.GetParameters().Length == this.numArgs)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (5)
504throw new XslTransformException(Res.Xslt_UnsupportedClrType, destinationType.Name); 535Debug.Assert(destinationType.IsAssignableFrom(value.GetType()), "ChangeType from type " + value.GetType().Name + " to type " + destinationType.Name + " failed"); 639throw new XslTransformException(Res.Xslt_UnsupportedClrType, sourceType.Name); 645Debug.Assert(XmlILTypeHelper.GetStorageType(xmlType).IsAssignableFrom(value.GetType()), "Xml type " + xmlType + " is not represented in ILGen as " + value.GetType().Name);
System\Xml\Xsl\Runtime\XsltLibrary.cs (2)
77Debug.Assert(methInfo != null, "Method " + className.Name + "." + methName + " not found"); 83Debug.Assert(methInfo != null, "Method " + className.Name + "." + methName + " not found");
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
104if(string.Compare(name, methods[i].Name, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0) {
System.Drawing (15)
commonui\System\Drawing\Advanced\Font.cs (1)
784GetType().Name,
commonui\System\Drawing\Advanced\FontFamily.cs (1)
245return string.Format(CultureInfo.CurrentCulture, "[{0}: Name={1}]", GetType().Name, this.Name);
commonui\System\Drawing\Advanced\ImageFormatConverter.cs (3)
74if (string.Equals(prop.Name, text, StringComparison.OrdinalIgnoreCase)) 111return targetProp.Name; 144Debug.Assert(prop.GetValue(null, tempIndex) != null, "Property " + prop.Name + " returned NULL");
commonui\System\Drawing\Color.cs (1)
1746sb.Append(GetType().Name);
commonui\System\Drawing\ColorConverter.cs (1)
345hash[prop.Name] = prop.GetValue(null, tempIndex);
commonui\System\Drawing\Design\ToolboxItem.cs (2)
731DisplayName = type.Name; 828Debug.WriteLine("Persisting: " + GetType().Name);
commonui\System\Drawing\Icon.cs (3)
73throw new ArgumentException(SR.GetString(SR.InvalidGDIHandle, (typeof(Icon)).Name)); 304throw new ObjectDisposedException(GetType().Name); 608throw new InvalidOperationException(SR.GetString(SR.IllegalState, GetType().Name));
commonui\System\Drawing\ImageAnimator.cs (1)
233animationThread.Name = typeof(ImageAnimator).Name;
misc\DbgUtil.cs (2)
349args += pi.ParameterType.Name + ", "; 357trace += String.Format(CultureInfo.CurrentCulture, "at {0} {1}.{2}({3})\r\n", fileName, mi.DeclaringType, mi.Name, args );
System.IdentityModel (9)
System\IdentityModel\Selectors\CustomUserNameSecurityTokenAuthenticator.cs (1)
28return SecurityUtils.CreateAuthorizationPolicies(new UserNameClaimSet(userName, validator.GetType().Name));
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
237return SecurityUtils.CreateIdentity(rsaKeyIdentifierClause.Rsa.ToXmlString(false), this.GetType().Name);
System\IdentityModel\Selectors\UserNamePasswordValidator.cs (1)
54SR.GetString(SR.UserNameAuthenticationFailed, this.provider.GetType().Name)));
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (1)
62throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7019, typeof(ConfigurationBasedIssuerNameRegistry).Name));
System\IdentityModel\Tokens\RsaSecurityToken.cs (2)
196SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name)));
System\IdentityModel\Tokens\SamlSubject.cs (1)
242this.identity = SecurityUtils.CreateIdentity(identityClaim.Resource.ToString(), this.GetType().Name);
System\IdentityModel\Tokens\SecurityToken.cs (2)
27SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name)));
System.Management (35)
Instrumentation\Attributes.cs (1)
434return member.Name;
Instrumentation\SchemaMapping.cs (34)
40 throw new ArgumentException(String.Format(RC.GetString("UNSUPPORTEDMEMBER_EXCEPT"), mi.Name), mi.Name, innerException); 301 CodeWriter codeNotNull = codeToWMI.AddChild(String.Format("if(instNET.{0} != null)", field.Name)); 306 codeNotNull.Line(String.Format("int len = instNET.{0}.Length;", field.Name)); 312 CodeWriter codeFoundType = codeForLoop.AddChild(String.Format("if((instNET.{0}[i] != null) && mapTypeToConverter.Contains(instNET.{0}[i].GetType()))", field.Name)); 313 codeFoundType.Line(String.Format("Type type = (Type)mapTypeToConverter[instNET.{0}[i].GetType()];", field.Name)); 315 codeFoundType.Line(String.Format("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name)); 318 codeForLoop.AddChild("else").Line(String.Format("embeddedObjects[i] = SafeAssign.GetManagementObject(instNET.{0}[i]);", field.Name)); 324 CodeWriter codeFoundType = codeNotNull.AddChild(String.Format("if(mapTypeToConverter.Contains(instNET.{0}.GetType()))", field.Name)); 325 codeFoundType.Line(String.Format("Type type = (Type)mapTypeToConverter[instNET.{0}.GetType()];", field.Name)); 327 codeFoundType.Line(String.Format("converter.ToWMI(instNET.{0});", field.Name)); 330 codeNotNull.AddChild("else").Line(String.Format("{0}.Value = SafeAssign.GetInstance(instNET.{1});", propFieldName, field.Name)); 341 codeNotNull = codeToWMI.AddChild(String.Format("if(instNET.{0} != null)", field.Name)); 348 codeNotNull.Line(String.Format("int len = instNET.{0}.Length;", field.Name)); 358 codeForLoop.Line(String.Format("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name)); 362 CodeWriter codeArrayElementNotNull = codeForLoop.AddChild(String.Format("if(instNET.{0}[i] != null)", field.Name)); 363 codeArrayElementNotNull.Line(String.Format("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name)); 384 codeNotNull.Line(String.Format("embeddedConverter_{0}.ToWMI(instNET.{1});", propFieldName, field.Name)); 397 codeToWMI.Line(String.Format("{0} instNET_{1} = instNET.{1} ;", t2, field.Name)); 398 codeToWMI.Line(String.Format("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 1, ref instNET_{1});", handleFieldName, field.Name)); 406 codeToWMI.Line(String.Format("{0} instNET_{1} = instNET.{1} ;", t2, field.Name)); 407 codeToWMI.Line(String.Format("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 2, ref instNET_{1});", handleFieldName, field.Name)); 410 codeToWMI.Line(String.Format("IWOA.WriteDWORD_f31(31, instWbemObjectAccessIP, {0}, instNET.{1});", handleFieldName, field.Name)); 412 codeToWMI.Line(String.Format("IWOA.WriteQWORD_f33(33, instWbemObjectAccessIP, {0}, instNET.{1});", handleFieldName, field.Name)); 417 codeToWMI.Line(String.Format("if(instNET.{0})", field.Name)); 424 CodeWriter codeQuickString = codeToWMI.AddChild(String.Format("if(null != instNET.{0})", field.Name)); 425 codeQuickString.Line(String.Format("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, (instNET.{1}.Length+1)*2, instNET.{1});", handleFieldName, field.Name)); 440 codeToWMI.Line(String.Format("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 52, SafeAssign.WMITimeToString(instNET.{1}));", handleFieldName, field.Name)); 444 codeToWMI.Line(String.Format("{0}.Value = instNET.{1};", propFieldName, field.Name)); 451 codeToWMI.AddChild(String.Format("if(null == instNET.{0})", field.Name)).Line(String.Format("{0}.Value = null;", propFieldName)); 452 codeToWMI.AddChild("else").Line(String.Format("{0}.Value = SafeAssign.WMITimeArrayToStringArray(instNET.{1});", propFieldName, field.Name)); 457 codeToWMI.Line(String.Format("{0}.Value = instNET.{1};", propFieldName, field.Name)); 495 throw new ArgumentException(String.Format(RC.GetString("MEMBERCONFLILCT_EXCEPT"), field.Name), field.Name);
System.Messaging (13)
System\Messaging\Cursor.cs (1)
36throw new ObjectDisposedException(GetType().Name);
System\Messaging\Design\MessageFormatterConverter.cs (4)
55if (((string)value) == typeof(ActiveXMessageFormatter).Name) 57if (((string)value) == typeof(BinaryMessageFormatter).Name) 59if (((string)value) == typeof(XmlMessageFormatter).Name) 75return value.GetType().Name;
System\Messaging\MessageEnumerator.cs (1)
87throw new ObjectDisposedException(GetType().Name);
System\Messaging\MessageQueue.cs (4)
4318throw new ObjectDisposedException(GetType().Name); 4349throw new ObjectDisposedException(GetType().Name); 4384throw new ObjectDisposedException(GetType().Name); 4411throw new ObjectDisposedException(GetType().Name);
System\Messaging\MessageQueueEnumerator.cs (1)
139throw new ObjectDisposedException(GetType().Name);
System\Messaging\MessageQueueTransaction.cs (1)
97throw new ObjectDisposedException(GetType().Name);
System\Messaging\SecurityContext.cs (1)
28throw new ObjectDisposedException(GetType().Name);
System.Runtime.DurableInstancing (5)
System\Runtime\PersistencePipeline.cs (5)
94throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnCollect(value.Key, module.GetType().Name), exception)); 108throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnCollect(value.Key, module.GetType().Name), exception)); 149throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnMap(value.Key, writeOnlyValues.Item1.GetType().Name), exception)); 223throw Fx.Exception.AsError(new CallbackException(SRCore.PersistencePipelineAbortThrew(module.GetType().Name), exception)); 555throw Fx.Exception.AsError(new CallbackException(SRCore.PersistencePipelineAbortThrew(module.GetType().Name), exception));
System.Runtime.Remoting (42)
channels\http\httpremotinghandler.cs (2)
506String xmlName = type.Name; 517SoapServices.RegisterSoapActionForMethodBase(mi, xmlNamespace + "#" + mi.Name);
channels\sinks\binaryformattersinks.cs (2)
71CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData); 346CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
channels\sinks\soapformattersinks.cs (2)
72CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData); 397CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
metadata\sdlchannelsink.cs (1)
54this.GetType().Name, (String)entry.Key);
metadata\wsdlparser.cs (3)
3651baseInfo.Name == Name && 4525sb.Append(WsdlParser.IsValidCS(method.Name)); 4592sb.Append(WsdlParser.IsValidCS(method.Name));
metadata\wsdlwriter.cs (32)
131if (_typeToServiceEndpoint.ContainsKey(serviceTypes[i].ObjectType.Name)) 133ArrayList serviceEndpoints = (ArrayList)_typeToServiceEndpoint[serviceTypes[i].ObjectType.Name]; 140_typeToServiceEndpoint[serviceTypes[i].ObjectType.Name] = serviceEndpoints; 160String refName = type.Name; 267Util.Log("WsdlGenerator.ProcessType need new type "+type+" typename "+type.Name); 268_name = type.Name; 321Util.Log("WsdlGenerator.EnqueueReachableTypes Interfaces "+interfaces[i].Name+" "+xns.Name); 371Util.Log("WsdlGenerator.ProcessMethods methods "+method.Name+" "+methodXNS.Name); 1080Util.Log("SimpleSchemaType.PrintSchemaType _type.Name "+_type.Name); 1206_name = _type.Name; 1480sb.Append(baseType.Name); 1488if (_typeToServiceEndpoint != null && !_typeToServiceEndpoint.ContainsKey(lbaseType.Name) && _typeToServiceEndpoint.ContainsKey(ltype.Name)) 1493_typeToServiceEndpoint[lbaseType.Name] = _typeToServiceEndpoint[ltype.Name]; 1518Util.Log("RealSchemaType.Resolve iFace "+_iFaces[i].Name); 1525sb.Append(_iFaces[i].Name); 1551String methodRequestName = method.Name; 1644Util.Log("RealSchemaType.Resolve fields "+field.Name+" type "+fieldType); 1645AddParticle(new SchemaElement(field.Name, fieldType, false, _xns)); 1997Util.Log("RealSchemaType.PrintMessageWsdl iFace "+iFaces[j].Name); 2004sb.Append(iFaces[j].Name); 2166sb.Append(baseType.Name); 2217sb.Append(nestedTypes[j].Name); 2271String arrayTypeName = type.Name; 2390Util.Log("RealSchemaType.FindMethodAttributes "+info.Name+" bVirtual "+bVirtual+" bNewSlot "+bNewSlot+" hidebysig "+info.IsHideBySig); 2409MethodInfo baseInfo = baseType.GetMethod(info.Name, types); 2435Util.Log("RealSchemaType.FindMethodAttributes Exit "+info.Name+" "+methodAttributes[i]); 2466if (!mi.IsPublic && type.GetMethod(mi.Name, bFlags | BindingFlags.NonPublic) != null) 2491String methodName = methodInfo.Name; 2529Util.Log("RealSchemaType.GetInstanceFields field "+fields[i].Name+" "+fields[i].FieldType+" type "+type); 2774Debug.Assert(LookupSimpleSchemaType(ssType.Type.Name) == null, "Duplicate Type found");
System.Runtime.Serialization (48)
System\Runtime\Serialization\ClassDataContract.cs (26)
331existingMemberContract.MemberInfo.Name, 332memberContract.MemberInfo.Name, 511this.OnDeserializing.Name), 525this.OnDeserialized.Name), 545this.Members[i].MemberInfo.Name), 554this.Members[i].MemberInfo.Name), 597this.OnSerializing.Name), 611this.OnSerialized.Name), 631this.Members[i].MemberInfo.Name), 640this.Members[i].MemberInfo.Name), 874ThrowInvalidDataContractException(SR.GetString(SR.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name)); 889ThrowInvalidDataContractException(SR.GetString(SR.NoGetMethodForProperty, property.DeclaringType, property.Name)); 894this.serializationExceptionMessage = SR.GetString(SR.NoSetMethodForProperty, property.DeclaringType, property.Name); 898ThrowInvalidDataContractException(SR.GetString(SR.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name)); 901ThrowInvalidDataContractException(SR.GetString(SR.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name)); 907ThrowInvalidDataContractException(SR.GetString(SR.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type))); 911memberContract.Name = member.Name; 921member.Name, true), type); 939ThrowInvalidDataContractException(SR.GetString(SR.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name)); 965&& member.Name == Globals.ExtensionDataObjectPropertyName) 969memberContract.Name = DataContract.EncodeLocalName(member.Name); 980memberContract.Name = DataContract.EncodeLocalName(member.Name); 989member.Name, true), type); 1118if (method.Name == Globals.ExtensionDataSetExplicitMethod || !method.IsPublic) 1141if (method.Name == Globals.ExtensionDataSetExplicitMethod || method.Name == Globals.ExtensionDataSetMethod)
System\Runtime\Serialization\CodeGenerator.cs (2)
559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ParameterCountMismatch, methodInfo.Name, methodInfo.GetParameters().Length, expectedCount))); 775throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CannotLoadMemberType, memberInfo.MemberType, memberInfo.DeclaringType, memberInfo.Name)));
System\Runtime\Serialization\CollectionDataContract.cs (5)
894if (mapping.InterfaceMethods[i].Name == name) 1085SR.CollectionTypeHasMultipleDefinitionsOfInterface, KnownInterfaces[(int)kind - 1].Name, ref dataContract); 1165if (mapping.InterfaceMethods[i].Name == Globals.AddMethodName) 1167else if (mapping.InterfaceMethods[i].Name == Globals.GetEnumeratorMethodName) 1352this.AddMethod.Name),
System\Runtime\Serialization\DataContract.cs (2)
1649typeName = type.Name; 1789return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? String.Format(CultureInfo.InvariantCulture, "{0}.{1}", type.Namespace, type.Name) : type.FullName;
System\Runtime\Serialization\DataContractSet.cs (1)
270DataContract.GetClrTypeFullName(dataMemberType), DataContract.GetClrTypeFullName(dataMember.MemberInfo.DeclaringType), dataMember.MemberInfo.Name)));
System\Runtime\Serialization\EnumDataContract.cs (5)
287ThrowInvalidDataContractException(SR.GetString(SR.TooManyEnumMembers, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name)); 294ThrowInvalidDataContractException(SR.GetString(SR.InvalidEnumMemberValue, field.Name, DataContract.GetClrTypeFullName(type))); 298memberContract.Name = field.Name; 305ThrowInvalidDataContractException(SR.GetString(SR.DataMemberOnEnumField, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name)); 312memberContract.Name = field.Name;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
371BitFlagsGenerator expectedElements = new BitFlagsGenerator(memberCount, ilg, classContract.UnderlyingType.Name + "_ExpectedElements");
System\Runtime\Serialization\SchemaExporter.cs (1)
278typeName = clrType.Name;
System\Runtime\Serialization\SchemaImporter.cs (2)
1324throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name))); 1338throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name)));
System\Runtime\Serialization\XmlDataContract.cs (1)
360System.Reflection.Emit.LocalBuilder local = ilg.DeclareLocal(type, type.Name + "Value");
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
71if (member.MemberInfo.Name == memberNode.Name && member.MemberInfo.DeclaringType.IsAssignableFrom(memberNode.DeclaringType))
System.Security (15)
system\security\cryptography\xml\SignedXmlDebugLog.cs (15)
245return String.Format(CultureInfo.InvariantCulture, "{0}#{1}", key.GetType().Name, keyName); 255"{0}#{1}", o.GetType().Name, 285canonicalizationTransform.GetType().Name); 320validationMethod.Name); 603signatureDescription.GetType().Name, 604hash.GetType().Name, 605asymmetricSignatureFormatter.GetType().Name); 628key.GetType().Name); 648string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name; 773string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name; 816signatureDescription.GetType().Name, 817hashAlgorithm.GetType().Name, 818asymmetricSignatureDeformatter.GetType().Name); 856mac.GetType().Name); 971string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name;
System.ServiceModel (280)
System\ServiceModel\Administration\ContractInstanceProvider.cs (3)
50contract.SetProperty(AdministrationStrings.Type, contractDescription.ContractType.Name); 53contract.SetProperty(AdministrationStrings.CallbackContract, ContractReference(contractDescription.CallbackContractType.Name)); 90operation.SetProperty(AdministrationStrings.ReturnType, operationDescription.SyncMethod.ReturnType.Name);
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
148instance = instance.NewInstance(elementType.Name);
System\ServiceModel\CallbackBehaviorAttribute.cs (1)
206SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackBehaviorAttribute).Name)));
System\ServiceModel\ChannelFactory.cs (3)
878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory.channelType.Name))); 892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory.channelType.Name))); 906throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory.channelType.Name)));
System\ServiceModel\Channels\BinaryMessageEncoder.cs (5)
163TD.WritePoolMiss(xmlWriter.GetType().Name); 199TD.WritePoolMiss(messageWriter.GetType().Name); 234TD.ReadPoolMiss(xmlReader.GetType().Name); 273TD.ReadPoolMiss(messageData.GetType().Name); 338TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
180this.GetType().Name,
System\ServiceModel\Channels\Binding.cs (4)
74this.name = this.GetType().Name; 319SR.GetString(SR.TransportBindingElementMustBeLast, this.Name, transport.GetType().Name))); 324SR.GetString(SR.InvalidBindingScheme, transport.GetType().Name))); 345return (this.Name != this.GetType().Name);
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (7)
484throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_GetWebSocketVersionFailed, this.connectionFactory.GetType().Name), e)); 490throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocketVersion, this.connectionFactory.GetType().Name))); 499throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocketVersion, this.connectionFactory.GetType().Name), e)); 525throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_CreateWebSocketFailed, this.connectionFactory.GetType().Name), e)); 531throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocket, this.connectionFactory.GetType().Name))); 536throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocket, this.connectionFactory.GetType().Name))); 545throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidSubProtocol, this.connectionFactory.GetType().Name, obtained, requested)));
System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
187exporter.State[typeof(SupportedAddressingMode).Name] = SupportedAddressingMode.NonAnonymous;
System\ServiceModel\Channels\ContextBindingElement.cs (1)
320callingBehavior.GetType().Name, endpoint.Name, endpoint.ListenUri.ToString())));
System\ServiceModel\Channels\FaultConverter.cs (4)
37string text = SR.GetString(SR.FaultConverterDidNotCreateException, this.GetType().Name); 46string text = SR.GetString(SR.FaultConverterCreatedException, this.GetType().Name); 63string text = SR.GetString(SR.FaultConverterDidNotCreateFaultMessage, this.GetType().Name); 72string text = SR.GetString(SR.FaultConverterCreatedFaultMessage, this.GetType().Name);
System\ServiceModel\Channels\HttpChannelFactory.cs (4)
180SR.GetString(SR.MultipleClientWebSocketFactoriesSpecified, typeof(BindingContext).Name, typeof(ClientWebSocketFactory).Name)); 472typeof(WebSocketTransportSettings).Name, 484typeof(WebSocketTransportSettings).Name,
System\ServiceModel\Channels\HttpChannelListener.cs (9)
128typeof(HttpRequestMessage).Name, 129typeof(HttpResponseMessage).Name, 130typeof(HttpMessageSettings).Name, 131typeof(MessageVersion).Name, 132typeof(MessageEncodingBindingElement).Name, 1133httpMessageHandlerFactory.GetType().Name, typeof(HttpRequestContext).Name))); 1521FxTrace.Exception.AsError(new NotSupportedException(SR.GetString(SR.HttpPipelineNotSupportNullResponseMessage, typeof(DelegatingHandler).Name, typeof(HttpResponseMessage).Name)));
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (11)
66SR.GetString(SR.HttpMessageHandlerTypeNotSupported, "null", delegatingHandlerType.Name)); 73SR.GetString(SR.HttpMessageHandlerTypeNotSupported, handler.Name, delegatingHandlerType.Name)); 81SR.GetString(SR.HttpMessageHandlerTypeNotSupported, handler.Name, delegatingHandlerType.Name)); 159typeof(HttpMessageHandlerFactory).Name, 200throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.HttpMessageHandlerFactoryWithFuncCannotGenerateConfig, typeof(HttpMessageHandlerFactory).Name, typeof(Func<IEnumerable<DelegatingHandler>>).Name))); 257throw FxTrace.Exception.Argument("handlers", SR.GetString(SR.DelegatingHandlerArrayFromFuncContainsNullItem, delegatingHandlerType.Name, GetFuncDetails(this.handlerFunc))); 286throw FxTrace.Exception.Argument("handlers", SR.GetString(SR.DelegatingHandlerArrayHasNonNullInnerHandler, delegatingHandlerType.Name, "InnerHandler", handler.GetType().Name)); 302return string.Format(CultureInfo.InvariantCulture, "{0}.{1}", t.FullName, m.Name);
System\ServiceModel\Channels\HttpPipeline.cs (1)
277typeof(HttpTransportBindingElement).Name)));
System\ServiceModel\Channels\MtomMessageEncoder.cs (7)
444TD.WritePoolMiss(xmlWriter.GetType().Name); 479TD.WritePoolMiss(messageWriter.GetType().Name); 508TD.ReadPoolMiss(messageData.GetType().Name); 545TD.ReadPoolMiss(xmlReader.GetType().Name); 560TD.ReadPoolMiss(xmlReader.GetType().Name); 655TD.ReadPoolMiss(xmlReader.GetType().Name); 670TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
598transportTransferMode, this.GetType().Name)));
System\ServiceModel\Channels\ServiceChannel.cs (2)
590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxCallbackRequestReplyInOrder1, typeof(ServiceBehaviorAttribute).Name))); 594throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxCallbackRequestReplyInOrder1, typeof(CallbackBehaviorAttribute).Name)));
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
353SR.GetString(SR.CouldnTCreateChannelForChannelType2, this.bindingName, typeof(TChannel).Name)));
System\ServiceModel\Channels\ServiceChannelProxy.cs (3)
124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SFxMethodNotSupported1, method.Name))); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SFxMethodNotSupportedOnCallback1, method.Name))); 309&& methodData.MethodBase.Name.Equals("Close", StringComparison.Ordinal))
System\ServiceModel\Channels\TextMessageEncoder.cs (5)
655TD.WritePoolMiss(xmlWriter.GetType().Name); 690TD.WritePoolMiss(messageWriter.GetType().Name); 719TD.ReadPoolMiss(xmlReader.GetType().Name); 757TD.ReadPoolMiss(messageData.GetType().Name); 845TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\WebSocketMessageProperty.cs (2)
57typeof(HttpResponseMessage).Name, 58typeof(DelegatingHandler).Name)));
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (5)
109if (method.Name == configMethod.ExposedMethod) 260methodInfo.Name, 280methodInfo.Name, 310parameterType.Name, 334returnType.Name,
System\ServiceModel\ComIntegration\EmitterCache.cs (2)
78TypeBuilder typeBuilder = DynamicModule.DefineType(interfaceType.Name + "MarshalByRefObject", TypeAttributes.Public | TypeAttributes.Class | TypeAttributes.Abstract, 89methodInClass = typeBuilder.DefineMethod(mInfo.Name,
System\ServiceModel\ComIntegration\TearOffProxy.cs (1)
65return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OperationNotFound, typeMethod.Name), HR.DISP_E_UNKNOWNNAME)), msg);
System\ServiceModel\Configuration\DelegatingHandlerElementCollection.cs (2)
39throw FxTrace.Exception.Argument("element", SR.GetString(SR.InputMustBeDelegatingHandlerElementError, typeof(ConfigurationElement).Name, typeof(DelegatingHandlerElement).Name));
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
314this.GetType().Name),
System\ServiceModel\DeliveryRequirementsAttribute.cs (1)
87string name = endpoint.Contract.ContractType.Name;
System\ServiceModel\Description\CallbackDebugBehavior.cs (1)
37SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackDebugBehavior).Name)));
System\ServiceModel\Description\CallbackTimeoutsBehavior.cs (1)
49SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackTimeoutsBehavior).Name)));
System\ServiceModel\Description\ClientCredentials.cs (1)
287SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientCredentials).Name)));
System\ServiceModel\Description\ClientUriBehavior.cs (1)
47SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientViaBehavior).Name)));
System\ServiceModel\Description\DispatcherBuilder.cs (2)
669typeof(ReceiveContextEnabledAttribute).Name, 671typeof(IReceiveContextSettings).Name)));
System\ServiceModel\Description\MessageContractExporter.cs (1)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotHaveTwoOperationsWithTheSameElement5, parentOperation.OperationMethod.DeclaringType, parentOperation.OperationMethod.Name, qname, existingElement.Operation.OperationMethod.DeclaringType, existingElement.Operation.Name)));
System\ServiceModel\Description\OperationGenerator.cs (4)
997return String.Compare(a.Name, b.Name, StringComparison.Ordinal); 1013attr.Arguments.Add(new CodeAttributeArgument(field.Name, GetArgValue(fieldValue))); 1022attr.Arguments.Add(new CodeAttributeArgument(property.Name, GetArgValue(propertyValue)));
System\ServiceModel\Description\ServiceDescription.cs (1)
58return NamingHelper.XmlName(ServiceType.Name);
System\ServiceModel\Description\ServiceMetadataBehavior.cs (1)
366if (description.ServiceType != null && description.ServiceType.GetInterface(typeof(IMetadataExchange).Name) != null)
System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
362throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SFxGetChannelDispatcherDoesNotSupportScheme, typeof(ChannelDispatcher).Name, Uri.UriSchemeHttp, Uri.UriSchemeHttps))); 401throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SFxGetChannelDispatcherDoesNotSupportScheme, typeof(ChannelDispatcher).Name, Uri.UriSchemeHttp, Uri.UriSchemeHttps)));
System\ServiceModel\Description\ServiceReflector.cs (32)
53int nameEnd = t.Name.IndexOf('`'); 54string result = nameEnd > 0 ? t.Name.Substring(0, nameEnd) : t.Name; 68return t.Name; 386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName))); 473SR.GetString(SR.SFxErrorReflectingOnType2, attrType.Name, type.Name), e)); 479attrType.Name, method.Name, method.ReflectedType.Name), e)); 488attrType.Name, param.Name, method.Name, method.ReflectedType.Name), e)); 492SR.GetString(SR.SFxErrorReflectionOnUnknown1, attrType.Name), e)); 654throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name))); 675SR.GetString(SR.SFxNoMostDerivedContract, interfaceType.Name))); 718methodInfo.Name, methodInfo.DeclaringType.Name))); 727methodInfo.Name, methodInfo.DeclaringType.Name))); 844throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName))); 848throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName))); 859throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName))); 875if (!method.Name.StartsWith(BeginMethodNamePrefix, StringComparison.Ordinal) || 892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName))); 935if (!method.Name.StartsWith(EndMethodNamePrefix, StringComparison.Ordinal) || 978return method.Name.Substring(BeginMethodNamePrefix.Length); 980else if (isTask && method.Name.EndsWith(AsyncMethodNameSuffix, StringComparison.Ordinal)) 982return method.Name.Substring(0, method.Name.Length - AsyncMethodNameSuffix.Length); 986return method.Name;
System\ServiceModel\Description\TaskOperationDescriptionValidator.cs (4)
36string method1Name = operation.TaskMethod.Name; 37string method2Name = operation.SyncMethod.Name; 46string method1Name = operation.TaskMethod.Name; 47string method2Name = operation.BeginMethod.Name;
System\ServiceModel\Description\TypedMessageConverter.cs (1)
69OperationDescription operation = new OperationDescription(NamingHelper.XmlName(t.Name), contract, false);
System\ServiceModel\Description\TypeLoader.cs (99)
144SR.SFxOperationContractOnNonServiceContract, methodInfo.Name, aParentType.Name))); 149SR.SFxOperationContractProviderOnNonServiceContract, operationContractProviderType.Name, methodInfo.Name, aParentType.Name))); 490opDesc.SyncMethod.Name, 492opDesc.BeginMethod.Name, 493opDesc.EndMethod.Name, 501opDesc.SyncMethod.Name, 503opDesc.TaskMethod.Name, 511opDesc.TaskMethod.Name, 513opDesc.BeginMethod.Name, 514opDesc.EndMethod.Name, 625String.Format(CultureInfo.InvariantCulture, "Bad contract inheritence. Contract {0} does not implement {1}", declaringContract.ContractType.Name, contractDescription.ContractType.Name) 637SR.GetString(SR.SFxOperationBehaviorAttributeOnlyOnServiceClass, methodInfo.Name, contractToGetMethodsFrom.Name))); 656throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SFxInvalidCallbackContractType, callbackType.Name))); 677inheritedContractType.Name, inheritedContractAttr.CallbackContract.Name, contractType.Name))); 683inheritedContractType.Name, contractType.Name))); 811methodInfo.Name, reflectionInfo.iface))); 831string method1Name = existingOp.OperationMethod.Name; 832string method2Name = methodInfo.Name; 837string method1Name = existingOp.BeginMethod.Name; 838string method2Name = methodInfo.Name; 843string method1Name = existingOp.SyncMethod.Name; 844string method2Name = methodInfo.Name; 1078string methodName = methodInfo.Name; 1321new XmlName(memberInfo.Name), 1329new XmlName(memberInfo.Name), 1336new XmlName(memberInfo.Name), 1558this.syncOperation.SyncMethod.Name, 1560this.asyncOperation.BeginMethod.Name, 1561this.asyncOperation.EndMethod.Name, 1574this.syncOperation.SyncMethod.Name, 1576this.asyncOperation.BeginMethod.Name, 1577this.asyncOperation.EndMethod.Name, 1591this.syncOperation.SyncMethod.Name, 1593this.asyncOperation.BeginMethod.Name, 1594this.asyncOperation.EndMethod.Name, 1606this.syncOperation.SyncMethod.Name, 1608this.asyncOperation.BeginMethod.Name, 1609this.asyncOperation.EndMethod.Name, 1620this.syncOperation.SyncMethod.Name, 1622this.asyncOperation.BeginMethod.Name, 1623this.asyncOperation.EndMethod.Name, 1625typeof(FaultContractAttribute).Name))); 1636this.syncOperation.SyncMethod.Name, 1638this.asyncOperation.BeginMethod.Name, 1639this.asyncOperation.EndMethod.Name, 1641typeof(ServiceKnownTypeAttribute).Name))); 1651this.syncOperation.SyncMethod.Name, 1653this.asyncOperation.BeginMethod.Name, 1654this.asyncOperation.EndMethod.Name, 1668this.syncOperation.SyncMethod.Name, 1670this.asyncOperation.BeginMethod.Name, 1671this.asyncOperation.EndMethod.Name, 1700this.syncOperation.SyncMethod.Name, 1702this.taskOperation.TaskMethod.Name, 1715this.syncOperation.SyncMethod.Name, 1717this.taskOperation.TaskMethod.Name, 1729this.syncOperation.SyncMethod.Name, 1731this.taskOperation.TaskMethod.Name, 1742this.syncOperation.SyncMethod.Name, 1744this.taskOperation.TaskMethod.Name, 1746typeof(FaultContractAttribute).Name))); 1757this.syncOperation.SyncMethod.Name, 1759this.taskOperation.TaskMethod.Name, 1761typeof(ServiceKnownTypeAttribute).Name))); 1771this.syncOperation.SyncMethod.Name, 1773this.taskOperation.TaskMethod.Name, 1787this.syncOperation.SyncMethod.Name, 1789this.taskOperation.TaskMethod.Name, 1818this.taskOperation.TaskMethod.Name, 1820this.asyncOperation.BeginMethod.Name, 1821this.asyncOperation.EndMethod.Name, 1834this.taskOperation.TaskMethod.Name, 1836this.asyncOperation.BeginMethod.Name, 1837this.asyncOperation.EndMethod.Name, 1849this.taskOperation.TaskMethod.Name, 1851this.asyncOperation.BeginMethod.Name, 1852this.asyncOperation.EndMethod.Name, 1863this.taskOperation.TaskMethod.Name, 1865this.asyncOperation.BeginMethod.Name, 1866this.asyncOperation.EndMethod.Name, 1868typeof(FaultContractAttribute).Name))); 1879this.taskOperation.TaskMethod.Name, 1881this.asyncOperation.BeginMethod.Name, 1882this.asyncOperation.EndMethod.Name, 1884typeof(ServiceKnownTypeAttribute).Name))); 1894this.taskOperation.TaskMethod.Name, 1896this.asyncOperation.BeginMethod.Name, 1897this.asyncOperation.EndMethod.Name, 1911this.taskOperation.TaskMethod.Name, 1913this.asyncOperation.BeginMethod.Name, 1914this.asyncOperation.EndMethod.Name,
System\ServiceModel\Description\WsdlExporter.cs (1)
658string key = typeof(SupportedAddressingMode).Name;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
467throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Name, headerName))); 474throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNamespaceMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Namespace, headerNs))); 551XmlName xmlName = new XmlName(member.Name);
System\ServiceModel\Diagnostics\TraceUtility.cs (2)
883SR.GetString(SR.SFxUserCodeThrewException, method.DeclaringType.FullName, method.Name)); 886SR.GetString(SR.TraceCodeUnhandledExceptionInUserOperation, method.DeclaringType.FullName, method.Name),
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (9)
102StartOperationInvokePerformanceCounters(this.beginMethod.Name.Substring(ServiceReflector.BeginMethodNamePrefix.Length)); 113StartOperationInvokeTrace(this.beginMethod.Name); 124this.beginMethod.DeclaringType.FullName, this.beginMethod.Name); 129this.beginMethod.DeclaringType.FullName, this.beginMethod.Name, 130this.endMethod.DeclaringType.FullName, this.endMethod.Name); 164StopOperationInvokeTrace(callFailed, callFaulted, this.EndMethod.Name); 165StopOperationInvokePerformanceCounters(callFailed, callFaulted, endMethod.Name.Substring(ServiceReflector.EndMethodNamePrefix.Length)); 242StopOperationInvokeTrace(callFailed, callFaulted, this.endMethod.Name); 243StopOperationInvokePerformanceCounters(callFailed, callFaulted, this.endMethod.Name.Substring(ServiceReflector.EndMethodNamePrefix.Length));
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (2)
99serviceAuthorizationManager == DefaultServiceAuthorizationManager ? "<default>" : serviceAuthorizationManager.GetType().Name, 133serviceAuthorizationManager == DefaultServiceAuthorizationManager ? "<default>" : serviceAuthorizationManager.GetType().Name);
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (2)
241methodBase.Name, 242methodBase.DeclaringType.Name)));
System\ServiceModel\Dispatcher\InvokerUtil.cs (7)
106LocalBuilder instanceLocal = ilg.DeclareLocal(type, type.Name + "Instance"); 125this.ilg.BeginMethod("SyncInvoke" + method.Name, typeof(InvokeDelegate), requiresMemberAccess); 136method.Name))); 170this.ilg.BeginMethod("AsyncInvokeBegin" + method.Name, typeof(InvokeBeginDelegate), requiresMemberAccess); 181method.Name))); 217this.ilg.BeginMethod("AsyncInvokeEnd" + method.Name, typeof(InvokeEndDelegate), requiresMemberAccess); 228method.Name)));
System\ServiceModel\Dispatcher\ReceiveContextRPCFacet.cs (1)
40typeof(ReceiveContext).Name)));
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
68methodName = method.Name; 166ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityExecuteMethod, this.method.DeclaringType.FullName, this.method.Name), ActivityType.ExecuteUserCode);
System\ServiceModel\Dispatcher\TaskExtensions.cs (1)
30m.IsGenericMethod && m.Name == TaskAsAsyncResultMethodName).First();
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (5)
169AsyncMethodInvoker.StopOperationInvokeTrace(callFailed, callFaulted, this.TaskMethod.Name); 170AsyncMethodInvoker.StopOperationInvokePerformanceCounters(callFailed, callFaulted, this.TaskMethod.Name); 197AsyncMethodInvoker.StartOperationInvokePerformanceCounters(this.taskMethod.Name); 206AsyncMethodInvoker.StartOperationInvokeTrace(this.taskMethod.Name); 210string activityName = SR.GetString(SR.ActivityExecuteMethod, this.taskMethod.DeclaringType.FullName, this.taskMethod.Name);
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (2)
825primaryIdentity, this.GetType().Name); 846primaryIdentity, this.GetType().Name, exception);
System\ServiceModel\Security\SecurityHeader.cs (1)
161return string.Format(CultureInfo.InvariantCulture, "{0}(Actor = '{1}')", GetType().Name, this.Actor);
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
114SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle))); 157SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle)));
System.ServiceModel.Activities (9)
System\ServiceModel\Activities\ContractValidationHelper.cs (2)
238Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(declaredMessageType.FullName, targetMessage.Body.ReturnValue.Type.Name, operation.Name, operation.DeclaringContract.Name))); 311partName = declaredMessageType.Name;
System\ServiceModel\Activities\Description\ControlOperationBehavior.cs (1)
40new InvalidOperationException(SR.WorkflowBehaviorWithNonWorkflowHost(typeof(ControlOperationBehavior).Name)));
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (1)
74new InvalidOperationException(SR.WorkflowBehaviorWithNonWorkflowHost(typeof(WorkflowOperationBehavior).Name)));
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (2)
127throw FxTrace.Exception.AsError(new ObjectDisposedException(typeof(DurableInstanceManager).Name)); 143throw FxTrace.Exception.AsError(new ObjectDisposedException(typeof(DurableInstanceManager).Name));
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
634throw FxTrace.Exception.AsError(new ObjectDisposedException(GetType().Name));
System\ServiceModel\Activities\MessageBuilder.cs (1)
159partName = type.Name;
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
306metadata.AddValidationError(SR.NullCorrelationHandleInInitializeCorrelation(correlation.GetType().Name));
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\MessageExtensionMethods.cs (2)
23private static readonly string HttpRequestMessagePropertyTypeName = typeof(HttpRequestMessageProperty).Name; 24private static readonly string HttpResponseMessagePropertyTypeName = typeof(HttpResponseMessageProperty).Name;
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
344return new ObjectDisposedException(null, SR.ObjectDisposed(this.GetType().Name));
System\ServiceModel\Channels\UdpUtility.cs (2)
225throw FxTrace.Exception.AsError(new InvalidOperationException(SR.TransportRequiresAddressingOnEncoderForRetransmission(encoderMessageVersion, "RetransmissionSettings", typeof(UdpTransportBindingElement).Name))); 230throw FxTrace.Exception.AsError(new InvalidOperationException(SR.TransportRequiresAddressingOnEncoderForDuplicateDetection(encoderMessageVersion, "DuplicateMessageHistoryLength", typeof(UdpTransportBindingElement).Name)));
System.ServiceModel.Discovery (7)
System\ServiceModel\Discovery\AnnouncementClient.cs (2)
513announcementEndpoint.GetType().Name, 515this.GetType().Name,
System\ServiceModel\Discovery\DiscoveryClient.cs (3)
756discoveryEndpoint.GetType().Name, 758this.GetType().Name, 913throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().Name));
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (2)
290if (description.ServiceType != null && description.ServiceType.GetInterface(typeof(IMetadataExchange).Name) != null) 486throw FxTrace.Exception.AsError(new InvalidOperationException(SR2.DiscoverySdmCollectionIsOpen(typeof(T).Name)));
System.ServiceModel.Internals (1)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
398string methodName = frame.GetMethod().Name;
System.ServiceModel.Web (29)
System\ServiceModel\Channels\WebMessageEncodingBindingElement.cs (1)
218return typeof(WebMessageEncodingBindingElement).Name;
System\ServiceModel\Configuration\WebHttpEndpointElement.cs (2)
187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebHttpEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName))); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebHttpEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName)));
System\ServiceModel\Configuration\WebScriptEndpointElement.cs (2)
154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebScriptEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName))); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebScriptEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName)));
System\ServiceModel\Description\WebHttpBehavior.cs (3)
471serviceEndpoint.Address.Uri.AbsoluteUri, behaviorName, transportBindingElement.GetType().Name))); 858SR2.GetString(SR2.GETCannotHaveMCParameter, operationDescription.Name, operationDescription.DeclaringContract.Name, operationDescription.Messages[0].MessageType.Name))); 1213SR2.GetString(SR2.GETCannotHaveMCParameter, operation.Name, operation.DeclaringContract.Name, operation.Messages[0].MessageType.Name)));
System\ServiceModel\Description\WebHttpEndpoint.cs (2)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebBehaviorNotFoundWithEndpoint, typeof(WebHttpEndpoint).Name, typeof(WebHttpBehavior).Name)));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (5)
44throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.BodyStyleNotSupportedByWebScript, value, this.GetType().Name, webScriptBodyStyle))); 161SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(XmlSerializerFormatAttribute).Name, this.GetType().ToString()))); 175SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 181SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 186throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.BodyStyleNotSupportedByWebScript, bodyStyle, this.GetType().Name, webScriptBodyStyle)));
System\ServiceModel\Description\WebScriptEndpoint.cs (2)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebBehaviorNotFoundWithEndpoint, WebEndpointType.Name, typeof(WebScriptEnablingBehavior).Name)));
System\ServiceModel\Description\WebServiceEndpoint.cs (2)
91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebHttpBindingNotFoundWithEndpoint, WebEndpointType.Name, typeof(WebHttpBinding).Name)));
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (5)
176else if (objectType.Name != "EmptyParticle") 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorHandlerNotFound, schemaObject.GetType().Name))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorMaxDepthLevelReached, schemaObject.GetType().Name))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorSchemaObjectNotSupported, schemaObject.GetType().Name))); 401context.writer.WriteString(String.Format(CultureInfo.InvariantCulture, "{0}:#{1}", derivedType.Name, derivedType.Namespace));
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
156parameterType.ToString(), this.GetType().Name))); 246parameterType.ToString(), this.GetType().Name)));
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (1)
183SR2.GetString(SR2.UriTemplateQueryVarMustBeConvertible, operationDescription.XmlName.DecodedName, contractName, parameterName, mpd.Type, qsc.GetType().Name)));
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
267SR2.GetString(SR2.HttpContextNoIncomingMessageProperty, typeof(HttpRequestMessageProperty).Name)));
System\ServiceModel\Web\IncomingWebResponseContext.cs (1)
65SR2.GetString(SR2.HttpContextNoIncomingMessageProperty, typeof(HttpResponseMessageProperty).Name)));
System.Web (165)
Cache\OutputCacheProviderCollection.cs (1)
21throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(OutputCacheProvider).Name),
Cache\SubstitutionResponseElement.cs (1)
32_methodName = _callback.Method.Name;
Compilation\AppSettingsExpressionBuilder.cs (3)
42new CodePrimitiveExpression(entry.PropertyInfo.Name)); 49return GetAppSetting(entry.Expression, target.GetType(), entry.PropertyInfo.Name); 73throw new InvalidOperationException(SR.GetString(SR.AppSetting_not_convertible, value, propDesc.PropertyType.Name, propDesc.Name));
Compilation\BaseCodeDomTreeGenerator.cs (1)
208string baseTypeName = Parser.BaseTypeName != null ? Parser.BaseTypeName : Parser.BaseType.Name;
Compilation\BaseTemplateCodeDomTreeGenerator.cs (3)
879CodeAttachEventStatement attachEvent = new CodeAttachEventStatement(ctrlRefExpr, eventInfo.Name, newDelegate); 883newDelegate.MethodName = GetExpressionBuilderMethodName(eventInfo.Name, builder); 1374string methodName = GetExpressionBuilderMethodName(eventInfo.Name, builder);
Compilation\BuildManager.cs (2)
896.ThenBy(m => m.Name, StringComparer.OrdinalIgnoreCase); 908method.Name,
Compilation\BuildProvider.cs (1)
436return buildProvider.GetType().Name;
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (7)
81var names = from m in members select m.Name; 104var reflectionPropertyNames = from p in reflectionProperties select p.Name; 105return (from p in runtimeProperties where reflectionPropertyNames.Contains(p.Name) select p.Name).ToArray(); 118var reflectionEventNames = from e in reflectionEvents select e.Name; 119return (from e in runtimeEvents where reflectionEventNames.Contains(e.Name) select e.Name).ToArray();
Compilation\CodeDOMUtility.cs (5)
46pd = TypeDescriptor.GetProperties(propertyInfo.ReflectedType)[propertyInfo.Name]; 105CodeFieldReferenceExpression fieldRef = new CodeFieldReferenceExpression(BuildGlobalCodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 112CodePropertyReferenceExpression propRef = new CodePropertyReferenceExpression(BuildGlobalCodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 133CodeMethodInvokeExpression methCall = new CodeMethodInvokeExpression(BuildGlobalCodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 210throw new HttpException(SR.GetString(SR.CantGenPropertySet, propertyInfo.Name, valueType.FullName));
Compilation\DelayLoadType.cs (1)
208return Type.Name;
Compilation\ResourceExpressionBuilder.cs (3)
115entry.DeclaringType, entry.PropertyInfo.Name); 131expr.Parameters.Add(new CodePrimitiveExpression(entry.PropertyInfo.Name)); 149expr.Parameters.Add(new CodePrimitiveExpression(entry.PropertyInfo.Name));
ErrorFormatter.cs (5)
1029sb.Append("[" + _exStack[i].GetType().Name); 1082sb.Append(" " + mb.Name + "("); 1085sb.Append(" " + ns + declaringType.Name + "." + 1086mb.Name + "("); 1092sb.Append((k != 0 ? ", " : String.Empty) + arrParams[k].ParameterType.Name + " " +
HttpApplication.cs (1)
1878String appMethodName = appMethod.Name;
HttpApplicationFactory.cs (1)
272String name = m.Name;
HttpCachePolicy.cs (1)
317string methodName = handler.Method.Name;
HttpResponse.cs (1)
1292string title = "[" + e.GetType().Name + "]";
Management\BufferedWebEventProvider.cs (1)
60Debug.Trace("BufferedWebEventProvider", "Saving event to buffer: event=" + eventRaised.GetType().Name);
Management\EventlogProvider.cs (2)
124dataFields.Add(exception.GetType().Name); 180Debug.Trace("EventLogWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name);
Management\SqlWebEventProvider.cs (1)
258Debug.Trace("SqlWebEventProvider", "Writing event to SQL: event=" + eventRaised.GetType().Name);
Management\WebEvents.cs (2)
403Debug.Trace("WebEventRaiseError", "Error Event is raised; type=" + e.GetType().Name); 502"WebEventRaiseDetails", "Event is raised; event class = " + eventRaised.GetType().Name);
Management\wmiprovider.cs (2)
131Debug.Trace("WmiWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name); 209wmiData.exceptionType = exception.GetType().Name;
ModelBinding\DataAnnotationsModelValidator.cs (1)
80memberName = Metadata.PropertyName ?? Metadata.ModelType.Name;
ModelBinding\ModelMetadata.cs (1)
370return DisplayName ?? PropertyName ?? ModelType.Name;
ModulesEntry.cs (1)
54return(type.Name.Equals(typeName) || type.FullName.Equals(typeName));
Profile\HttpProfileBase.cs (4)
406baseProperties.Add(baseProp.Name, String.Empty); 412if (baseProperties[prop.Name] == null) { //not in the base class 432throw new ConfigurationErrorsException(SR.GetString(SR.Annoymous_id_module_not_enabled, prop.Name), config.ElementInformation.Properties["inherits"].Source, config.ElementInformation.Properties["inherits"].LineNumber); 455SettingsProperty sp = new SettingsProperty(prop.Name, prop.PropertyType, prov, readOnly, defaultValue, serializeAs, settings, false, true);
SiteMap.cs (2)
132throw new ArgumentException(SR.GetString(SR.Provider_must_implement_the_interface, provider.GetType().Name, typeof(SiteMapProvider).Name), "provider");
SiteMapNode.cs (1)
33private static readonly string _siteMapNodeType = typeof(SiteMapNode).Name;
SiteMapProvider.cs (1)
319attributes.Add("description", this.GetType().Name);
UI\BindableTemplateBuilder.cs (1)
105Debug.Assert(false, "BoundPropertyEntry is of wrong control type or couldn't be found. Expected " + entry.ControlType.Name);
UI\ControlBuilder.cs (7)
704throw new HttpException(SR.GetString(SR.NoCompileBinding_requires_ID, _controlType.Name, fieldName)); 707throw new HttpException(SR.GetString(SR.TwoWayBinding_requires_ID, _controlType.Name, fieldName)); 838throw new InvalidOperationException(SR.GetString(SR.ControlBuilder_TwoWayBindingNonProperty, name, ControlType.Name)); 1691Debug.Assert(false, "The type " + cba.BuilderType.Name + " should be made public for better performance."); 1968throw new InvalidOperationException(SR.GetString(SR.Cannot_set_recursive_skin, builder.ControlType.Name)); 2413Debug.Assert(entry.ControlType.IsInstanceOfType(sender), "The DataBinding event sender was not of type " + entry.ControlType.Name); 3096PropertyDescriptor propDesc = propertyDescriptors[propInfo.Name];
UI\DataSourceControl.cs (4)
85throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 99throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 117throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 166throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\HierarchicalDataSourceControl.cs (4)
66throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 81throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 100throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 132throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\HtmlControls\HtmlInputFile.cs (1)
172throw new NotSupportedException(SR.GetString(SR.Value_Set_Not_Supported, this.GetType().Name));
UI\HtmlControls\HtmlSelect.cs (5)
214throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 217throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 227throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 230throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 491throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlSelect", obj.GetType().Name));
UI\HtmlControls\HtmlTable.cs (6)
169throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 172throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 182throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 185throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 303throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTable", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 315throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTable", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\HtmlControls\HtmlTableRow.cs (6)
155throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 158throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 168throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 171throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 245throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 257throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\HtmlControls\HtmlTextArea.cs (1)
177throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTextArea", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\ObjectStateFormatter.cs (1)
197"Type: " + _page.GetType().Name.ToUpperInvariant()
UI\Page.cs (2)
1540pageHashCode += StringUtil.GetNonRandomizedHashCode(GetType().Name, ignoreCase:true); 6254throw new HttpException(SR.GetString(SR.ControlRenderedOutsideServerForm, control.ClientID, control.GetType().Name));
UI\PropertyConverter.cs (2)
89pd = TypeDescriptor.GetProperties(propertyInfo.ReflectedType)[propertyInfo.Name]; 144objType.FullName, value, propertyInfo.Name));
UI\PropertyMapper.cs (2)
85propName = propInfo.Name; 89propName = fieldInfo.Name;
UI\TemplateControl.cs (1)
634combinedHashCode.AddObject(m.Name);
UI\WebControls\Content.cs (1)
106throw new HttpException(SR.GetString(SR.Control_Missing_Attribute, _contentPlaceHolderIDPropName, type.Name));
UI\WebControls\ContentPlaceHolder.cs (1)
35throw new HttpException(SR.GetString(SR.Control_Missing_Attribute, "ID", type.Name));
UI\WebControls\DataBoundControlHelper.cs (1)
46throw new HttpException(SR.GetString(SR.DataBoundControlHelper_NoNamingContainer, control.GetType().Name, control.ID));
UI\WebControls\DataControlField.cs (1)
643return headerText.Length > 0 ? headerText : GetType().Name;
UI\WebControls\DetailsView.cs (2)
1572throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 3591throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\FormView.cs (3)
1346throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 2866propertyName, GetType().Name, ID)); 3031throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\GridView.cs (2)
1956throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 4449throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\HiddenField.cs (3)
39throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 52throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 102throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\HotSpot.cs (1)
227return GetType().Name;
UI\WebControls\listitem.cs (1)
374throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "ListItem", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\WebControls\Literal.cs (2)
106throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Literal", obj.GetType().Name.ToString(CultureInfo.InvariantCulture))); 125throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\LoginUtil.cs (2)
308throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 354propertyName, _owner.GetType().Name, _owner.ID));
UI\WebControls\LoginView.cs (1)
254throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\ModelDataSourceView.cs (1)
1147MethodInfo[] actionMethods = Array.FindAll(allMethods, methodInfo => methodInfo.Name.Equals(methodName, StringComparison.OrdinalIgnoreCase));
UI\WebControls\MultiView.cs (1)
170throw new HttpException(SR.GetString(SR.MultiView_cannot_have_children_of_type, obj.GetType().Name));
UI\WebControls\ObjectDataSourceView.cs (2)
1371if (String.Equals(methodName, mi.Name, StringComparison.OrdinalIgnoreCase)) { 1486if (String.Equals(methodName, mi.Name, StringComparison.OrdinalIgnoreCase)) {
UI\WebControls\SqlDataSource.cs (1)
949throw new HttpException(SR.GetString(SR.SqlDataSource_NoDbPermission, _providerFactory.GetType().Name, ID));
UI\WebControls\Table.cs (2)
396throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Table", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 408throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Table", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\WebControls\TableRow.cs (2)
169throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 181throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\WebControls\TextBox.cs (1)
551throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TextBox", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\WebControls\Wizard.cs (2)
3253throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 3367throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\xml.cs (4)
235throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 249throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 352throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Xml", obj.GetType().Name.ToString(CultureInfo.InvariantCulture))); 374throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\XmlDataSourceNodeDescriptor.cs (1)
44return GetType().Name;
UI\WebControls\XmlHierarchyData.cs (1)
133return GetType().Name;
UI\WebParts\ConnectionConsumerAttribute.cs (1)
90throw new InvalidOperationException(SR.GetString(SR.ConnectionConsumerAttribute_InvalidConnectionPointType, _connectionPointType.Name));
UI\WebParts\ConnectionProviderAttribute.cs (1)
90throw new InvalidOperationException(SR.GetString(SR.ConnectionProviderAttribute_InvalidConnectionPointType, _connectionPointType.Name));
UI\WebParts\DeclarativeCatalogPart.cs (2)
230set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } 271set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); }
UI\WebParts\PageCatalogPart.cs (2)
215set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } 256set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); }
UI\WebParts\PersonalizableTypeEntry.cs (1)
72string name = pi.Name;
UI\WebParts\ProxyWebPartManager.cs (4)
52throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 65throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 97throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 109throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebParts\TransformerTypeCollection.cs (2)
30throw new InvalidOperationException(SR.GetString(SR.WebPartTransformerAttribute_NotTransformer, value.Name)); 53throw new ArgumentException(SR.GetString(SR.WebPartTransformerAttribute_NotTransformer, ((Type)obj).Name),
UI\WebParts\WebPartConnection.cs (1)
411return GetType().Name;
UI\WebParts\WebPartManager.cs (7)
531throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 597throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 1806throw new InvalidOperationException(SR.GetString(SR.WebPartManager_InvalidConsumerSignature, method.Name, type.FullName)); 1836throw new InvalidOperationException(SR.GetString(SR.WebPartManager_InvalidProviderSignature, method.Name, type.FullName)); 1944id += webPartType.Name; 2278throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 3336throw new InvalidOperationException(SR.GetString(SR.WebPartTransformerAttribute_NotTransformer, type.Name));
Util\FactoryGenerator.cs (2)
98throw new InvalidOperationException(SR.GetString(SR.FactoryGenerator_TypeNotPublic, type.Name)); 103throw new InvalidOperationException(SR.GetString(SR.FactoryGenerator_TypeHasNoParameterlessConstructor, type.Name));
Util\FastDelegateCreator.cs (1)
41name: "FastCreateDelegate_" + typeof(TDelegate).Name,
Util\FastPropertyAccessor.cs (1)
110String typeName = System.Web.UI.Util.MakeValidTypeNameFromString(type.Name) +
Util\QueryableUtility.cs (1)
21return _methods.Where(m => m.Name == method).Contains(GetQueryableMethod(expression));
Util\ReflectionUtil.cs (1)
60name: "Reset-" + targetType.Name,
System.Web.DataVisualization (49)
Common\General\BaseClasses.cs (3)
196return GetType().Name; 289throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(value, nameController.GetType().Name)); 350string typeName = GetType().Name;
Common\General\BaseCollections.cs (7)
292get { return typeof(T).Name; } 308throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 324throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 327throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 412throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 451throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name)); 475throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name));
Common\Utilities\XmlSerializer.cs (39)
372 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToReset)[pi.Name]; 389 bool resetProperty = IsSerializableContent(pi.Name, objectToReset); 404 MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 431 if(pi.Name == "Item") 437if (pi.Name == "Name") 473MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 485 ResetObjectProperties(pi.GetValue(objectToReset, null), objectToReset, pi.Name); 867 PropertyDescriptor pd = TypeDescriptor.GetProperties(parent)[pi.Name]; 914PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 1511 if(templateListItem && pi.Name == "Name") 1523if (!IsSerializableContent(pi.Name, objectToSerialize)) 1536 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 1550 MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 1564 SerializeCollection(pi.GetValue(objectToSerialize, null), pi.Name, xmlNode, xmlDocument); 1572 if(pi.Name == "Item") 1581 SerializeProperty(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, xmlNode, xmlDocument); 1586 SerializeObject(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, xmlNode, xmlDocument); 2380bool serialize = IsSerializableContent(pi.Name, objectToSerialize); 2386PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 2400MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2414 propNamesList.Add(pi.Name); 2415 SerializeCollection(pi.GetValue(objectToSerialize, null), pi.Name, writer); 2423 if(pi.Name == "Item") 2428if (IsSerializableContent(pi.Name, objectToSerialize)) 2434SerializeProperty(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, writer); 2439SerializeObject(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, writer); 2442 propNamesList.Add(pi.Name); 2967if ((SerializerBase.GetStringHashCode(listItemPI.PropertyType.Name)) == typeHash) 2969typeName = listItemPI.PropertyType.Name; 2985if ((SerializerBase.GetStringHashCode(type.Name)) == typeHash) 2987typeName = type.Name; 3041 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToDeserialize)[pi.Name]; 3047setPropertiesNumber += DeserializeObject(innerObject, objectToDeserialize, pi.Name, reader, !IsSerializableContent(pi.Name, objectToDeserialize)); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3206if (!skipElement && IsSerializableContent(pi.Name, obj)) 3249 if((SerializerBase.GetStringHashCode(pi.Name)) == propertyID) 3259 if(pi.Name == "Item") 3264 if((SerializerBase.GetStringHashCode(pi.Name)) == propertyID)
System.Web.DynamicData (13)
DynamicData\DynamicControl.cs (1)
265DynamicDataResources.DynamicControl_ControlMustHaveDateFieldAttribute, GetType().Name, ID));
DynamicData\DynamicControlParameter.cs (1)
163CultureInfo.CurrentCulture, DynamicDataResources.DynamicParameter_NeedExpansion, typeof(DynamicControlParameter).Name));
DynamicData\DynamicEntity.cs (1)
106writer.Write("[" + GetType().Name + "]");
DynamicData\DynamicFilter.cs (1)
97writer.Write("[" + GetType().Name + "]");
DynamicData\DynamicQueryStringParameter.cs (1)
39CultureInfo.CurrentCulture, DynamicDataResources.DynamicParameter_NeedExpansion, typeof(DynamicQueryStringParameter).Name));
DynamicData\FieldTemplateFactory.cs (1)
243virtualPath = GetVirtualPathIfExists(fieldType.Name, column, mode);
DynamicData\MetaColumn.cs (1)
474return GetType().Name + " " + Name;
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
28ProcessTable(table, table.RowType, prop.Name, prop);
DynamicData\ModelProviders\DLinqTableProvider.cs (3)
20DataContextPropertyName = prop.Name; 30MetaDataMember member = members.FirstOrDefault(m => m.Member.Name == propInfo.Name);
DynamicData\ModelProviders\SimpleTableProvider.cs (1)
21Name = entityType.Name;
DynamicData\Util\Misc.cs (1)
297control.GetType().Name, control.ID));
System.Web.Entity (5)
System\Data\WebControls\EntityDataSourceView.cs (3)
280throw new InvalidOperationException(Strings.EntityDataSourceView_QueryCreatedNotAnObjectQuery(queryReturned.GetType().FullName, typeof(T).Name)); 289throw new InvalidOperationException(Strings.EntityDataSourceView_QueryCreatedWrongType(elementType.Name, typeof(T).Name));
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
141if (indexer.Name == "Item")
System\Data\WebControls\EntityDataSourceWrapperPropertyDescriptor.cs (1)
76throw new InvalidOperationException(Strings.ValueNotResettable(this.ComponentType.Name));
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
1012ShowError(Strings.Error_ReturnedNullOnProviderMethod(factory.GetType().Name));
System.Web.Extensions (28)
Compilation\WCFModel\SchemaMerger.cs (2)
590name = property.Name; 727if (String.Equals(property.Name, "Constraints", StringComparison.Ordinal))
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1776if (String.Equals(attribute.Name, type.FullName, StringComparison.Ordinal) || String.Equals(attribute.Name, type.Name, StringComparison.Ordinal))
Configuration\ConvertersCollection.cs (1)
87throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.ConvertersCollection_NotJavaScriptConverter, t.Name));
Script\Serialization\JavaScriptSerializer.cs (3)
258SerializeString(fieldInfo.Name, sb); 282SerializeString(propInfo.Name, sb); 486? String.Format(CultureInfo.CurrentCulture, AtlasWeb.JSON_CannotSerializeMemberGeneric, currentMember.Name, currentMember.ReflectedType.FullName) + " " + AtlasWeb.JSON_InvalidEnumType
Script\Services\WebServiceData.cs (3)
172: this(new WebServiceTypeData(type.Name, type.Namespace, type)) { 381enumData = new WebServiceEnumData(t.Name, t.Namespace, t, Enum.GetNames(t), Enum.GetValues(t), Enum.GetUnderlyingType(t) == typeof(ulong)); 421_clientTypesDictionary[typeStringRepresentation] = new WebServiceTypeData(t.Name, t.Namespace, t);
Script\Services\WebServiceMethodData.cs (1)
33_methodName = methodInfo.Name;
UI\ScriptReference.cs (1)
546return GetType().Name;
UI\ServiceReference.cs (1)
126return GetType().Name;
UI\WebControls\ContextDataSourceView.cs (1)
146if (String.Equals(members[i].Name, entitySetTypeName, StringComparison.OrdinalIgnoreCase)) {
UI\WebControls\Dynamic.cs (9)
132sb.Append(props[i].Name); 1071string type1 = expr1 != nullLiteral ? expr1.Type.Name : "null"; 1072string type2 = expr2 != nullLiteral ? expr2.Type.Name : "null"; 1099propName = me.Member.Name; 1238if (signature.Name == "Min" || signature.Name == "Max") { 1250return Expression.Call(typeof(Enumerable), signature.Name, typeArgs, args); 1319string s = baseType.Name; 2063foreach (Type type in predefinedTypes) d.Add(type.Name, type);
UI\WebControls\LinqDataSourceView.cs (4)
360AtlasWeb.LinqDataSourceView_TableCannotBeStatic, TableName, contextType.Name, _owner.ID)); 387AtlasWeb.LinqDataSourceView_TableNameNotFound, TableName, contextType.Name, _owner.ID)); 619if (String.Equals(members[i].Name, tableName, StringComparison.OrdinalIgnoreCase)) { 868IDictionary<string, MetaDataMember> columns = GetTableMetaDataMembers((ITable)EntitySet, entityType).ToDictionary(c => c.Member.Name);
UI\WebControls\ListView.cs (1)
1478throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, AtlasWeb.ListView_NeedICollectionOrTotalRowCount, GetType().Name));
System.Web.Mobile (16)
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
269wmlWriter.WriteEncodedText(ex.TargetSite.Name);
UI\MobileControls\CompileLiteralTextParser.cs (3)
54typeof(LiteralText), typeof(LiteralText).Name, 65typeof(LiteralLink), typeof(LiteralLink).Name, 134typeof(LiteralText), typeof(LiteralText).Name,
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
278control.GetType().Name,
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (1)
316_cbCompare.Items.Add(property.Name);
UI\MobileControls\Design\MobileControlPersister.cs (3)
69declarativeType = tagPrefix + ":" + type.Name; 80declarativeType = type.Name; 173itemTypeName = collItem.GetType().Name;
UI\MobileControls\Design\StylesEditorDialog.cs (3)
365String[] subItems = {type.Name, type.Namespace}; 377String[] subItems = {type.Name, type.Namespace}; 486String newStyleID = _currentNewStyleType.Name;
UI\MobileControls\MobileControl.cs (1)
153GetType().Name));
UI\MobileControls\MobileControlBuilder.cs (1)
44if (String.Compare(tagName, typeof(DeviceSpecific).Name, StringComparison.OrdinalIgnoreCase) == 0)
UI\MobileControls\MobilePage.cs (2)
808control.GetType().Name)); 1452pageHashCode += StringComparer.InvariantCultureIgnoreCase.GetHashCode(GetType().Name);
System.Web.Services (33)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
113if (type.ContentModel.Content == null) throw new ArgumentException(Res.GetString(Res.Missing2, type.Name, type.ContentModel.GetType().Name), "part");
System\Web\Services\Description\SchemaCompiler.cs (2)
132string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name; 139item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType().Name, null, details);
System\Web\Services\Description\ServiceDescriptionReflector.cs (1)
151name = serviceType.Name;
System\Web\Services\Description\SoapProtocolImporter.cs (3)
736UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportReferenceParameters, ServiceImporter.CodeGenerator.GetType().Name)); 797UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportParameterAttributes, ServiceImporter.CodeGenerator.GetType().Name)); 825UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportReturnTypeAttributes, ServiceImporter.CodeGenerator.GetType().Name));
System\Web\Services\Description\SoapProtocolReflector.cs (2)
137throw new InvalidOperationException(Res.GetString(Res.BPConformanceHeaderFault, soapMethod.methodInfo.ToString(), soapMethod.methodInfo.DeclaringType.FullName, "Direction", typeof(SoapHeaderDirection).Name, SoapHeaderDirection.Fault.ToString())); 198throw new InvalidOperationException(Res.GetString(Res.WsdlGenRpcLitAnonimousType, Method.DeclaringType.Name, Method.Name, member.MemberName));
System\Web\Services\Protocols\LogicalMethodInfo.cs (11)
67if (methodInfo.IsStatic) throw new InvalidOperationException(Res.GetString(Res.WebMethodStatic, methodInfo.Name)); 81methodName = methodDefinition.Name; 88methodName = beginMethodInfo.Name.Substring(5); 98throw new InvalidOperationException(Res.GetString(Res.WebMethodMissingParams, beginMethodInfo.DeclaringType.FullName, beginMethodInfo.Name, 321throw new InvalidOperationException(Res.GetString(Res.ContractOverride, methodInfo.Name, methodInfo.DeclaringType.FullName, declaration.DeclaringType.FullName, declaration.ToString(), implAttributes[0].ToString())); 468methodInfo.Name.StartsWith("Begin", StringComparison.Ordinal); 479methodInfo.Name.StartsWith("End", StringComparison.Ordinal); 510if (ends != null) ends.Add(methodInfo.Name, methodInfo); 531string endName = "End" + beginMethodInfo.Name.Substring(5); 534throw new InvalidOperationException(Res.GetString(Res.WebAsyncMissingEnd, beginMethodInfo.DeclaringType.FullName, beginMethodInfo.Name, endName)); 573throw new InvalidOperationException(Res.GetString(Res.ContractOverride, methodInfo.Name, methodInfo.DeclaringType.FullName, declaration.DeclaringType.FullName, declaration.ToString(), o.ToString()));
System\Web\Services\Protocols\PatternMatcher.cs (6)
87throw BadGroupIndexException(group, memberInfo.Name, m.Groups.Count - 1); 100throw BadGroupIndexException(group, memberInfo.Name, m.Groups.Count - 1); 104throw BadCaptureIndexException(capture, memberInfo.Name, g.Captures.Count - 1); 121throw BadGroupIndexException(group, memberInfo.Name, m.Groups.Count - 1); 134throw BadGroupIndexException(group, memberInfo.Name, m.Groups.Count - 1); 138throw BadCaptureIndexException(capture, memberInfo.Name, g.Captures.Count - 1);
System\Web\Services\Protocols\ServerProtocol.cs (1)
136if (text.Length == 0) text = e.GetType().Name;
System\Web\Services\Protocols\SoapReflector.cs (4)
301if (client) throw new InvalidOperationException(Res.GetString(Res.WebInvalidBindingPlacement, methodAttr.GetType().Name)); 486member.MemberName = soapHeader.headerType.Name; 525throw new InvalidOperationException(Res.GetString(Res.WebReflectionErrorMethod, methodInfo.DeclaringType.Name, methodInfo.Name), e); 547return new Exception(Res.GetString(description, declaringType.Name, memberName));
System\Web\Services\WebMethodAttribute.cs (2)
237throw new InvalidOperationException(Res.GetString(Res.ContractOverride, implementation.Name, implementation.DeclaringType.FullName, declaration.DeclaringType.FullName, declaration.ToString(), "WebMethod.MessageName")); 291binding.Name = declaration.DeclaringType.Name;
System.Windows.Forms (91)
misc\DbgUtil.cs (2)
349args += pi.ParameterType.Name + ", "; 357trace += String.Format(CultureInfo.CurrentCulture, "at {0} {1}.{2}({3})\r\n", fileName, mi.DeclaringType, mi.Name, args );
misc\GDI\WindowsFont.cs (1)
385return string.Format(CultureInfo.CurrentCulture, "[{0}: Name={1}, Size={2} points, Height={3} pixels, Sytle={4}]", GetType().Name, logFont.lfFaceName, this.Size, this.Height, this.Style);
misc\GDI\WindowsPen.cs (1)
193this.GetType().Name,
misc\GDI\WindowsSolidBrush.cs (1)
67return String.Format( CultureInfo.InvariantCulture, "{0}: Color={1}", this.GetType().Name, this.Color );
winforms\Managed\System\WinForms\Application.cs (1)
534productName = t.Name;
winforms\Managed\System\WinForms\AxHost.cs (9)
1820throw new TargetInvocationException(SR.GetString(SR.AXNohWnd,GetType().Name), t); 1880throw new NotSupportedException(SR.GetString(SR.AXNohWnd,GetType().Name)); 1945throw new TargetInvocationException(SR.GetString(SR.AXNohWnd,GetType().Name), t); 2880propertyInfos.Add(propInfo.Name, propInfo); 3723throw new ArgumentException(SR.GetString(SR.AXNoEventInterface, eventInterface.Name)); 3728throw new InvalidCastException(SR.GetString(SR.AXNoSinkImplementation, eventInterface.Name)); 3741throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.AXNoSinkAdvise, eventInterface.Name), hr)); 3759throw new ArgumentException(SR.GetString(SR.AXNoConnectionPoint, eventInterface.Name)); 7467Debug.Fail("Failed to build IPerPropertyBrowsing editor. " + ex.GetType().Name + ", " + ex.Message);
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (3)
155if ("Item".Equals(itemProps[i].Name) && itemProps[i].PropertyType != typeof(object)) 173if ("Item".Equals(props[i].Name) && props[i].PropertyType != typeof(object)) { 204if (props[i].Name.Equals(((PropertyDescriptor)listAccessors[offset]).Name))
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\BaseCAMarshaler.cs (5)
46Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Marshaling " + count.ToString(CultureInfo.InvariantCulture) + " items of type " + ItemType.Name); 96Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Marshaling failed: " + ex.GetType().Name + ", " + ex.Message); 128Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Marshaled " + ItemType.Name + " item, value=" + (curItem == null ? "(null)" : curItem.ToString())); 131Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Failed to marshal " + ItemType.Name + " item, exception=" + ex.GetType().Name +", " +ex.Message);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
71Debug.Fail("Don't know how to set type:" + managedValue.GetType().Name);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
332Debug.Fail("Failed to build IPerPropertyBrowsing editor. " + ex.GetType().Name + ", " + ex.Message);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (6)
125Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!"); 138Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!"); 156Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!"); 200Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!"); 216Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!"); 232Debug.Assert(sender.TargetObject == null || sender.TargetObject is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
123Debug.Fail("Unknown Image type: " + managedValue.GetType().Name);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (2)
290throw new ArgumentException(SR.GetString(SR.COM2BadHandlerType, t.Name, handler.Interface.Name));
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
801Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, "ProcessTypeInfoEnum: PtrtoStructFailed " + ex.GetType().Name + "," + ex.Message);
winforms\Managed\System\WinForms\Control.cs (6)
4433Exception ex = new System.ObjectDisposedException(GetType().Name); 5780throw new System.ObjectDisposedException(GetType().Name); 5967Exception ex = new System.ObjectDisposedException(GetType().Name); 11577Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + dx + ", " + dy + ")"); 15618userType = GetType().Name; 17904throw new ArgumentException(SR.GetString(SR.AXNoConnectionPoint, eventInterface.Name));
winforms\Managed\System\WinForms\CurrencyManager.cs (1)
559return finalType.Name;
winforms\Managed\System\WinForms\Cursor.cs (2)
105throw new ArgumentException(SR.GetString(SR.InvalidGDIHandle, (typeof(Cursor)).Name)); 245throw new ObjectDisposedException(SR.GetString(SR.ObjectDisposed, GetType().Name));
winforms\Managed\System\WinForms\CursorConverter.cs (4)
67if (string.Equals(prop.Name, text, StringComparison.OrdinalIgnoreCase) ){ 105return prop.Name; 114return props[bestMatch].Name; 171Debug.Assert(prop.GetValue(null, tempIndex) != null, "Property " + prop.Name + " returned NULL");
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
4796return this.owner.GetType().Name + "(" + owner.GetType().BaseType.Name + ")";
winforms\Managed\System\WinForms\Design\PropertyTab.cs (1)
43string bmpName = GetType().Name + ".bmp";
winforms\Managed\System\WinForms\Form.cs (1)
5786Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + x + ", " + y + ")");
winforms\Managed\System\WinForms\Formatter.cs (1)
388return String.Format(CultureInfo.CurrentCulture, SR.GetString(stringResId), value, targetType.Name);
winforms\Managed\System\WinForms\HtmlHistory.cs (1)
42throw new System.ObjectDisposedException(GetType().Name);
winforms\Managed\System\WinForms\ListBindingHelper.cs (5)
327name = type.GetElementType().Name; 334name = indexer.PropertyType.Name; 338name = type.Name; 343name = type.Name; 560if (indexer.Name == "Item") {
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
2673return calendar.GetType().Name + "(" + calendar.GetType().BaseType.Name + ")";
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4374throw new ArgumentException(SR.GetString(SR.ConnPointUnhandledType, t.Name));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1690Debug.Fail("Failed to get properties: " + e.GetType().Name + "," + e.Message + "\n" + e.StackTrace); 1770Debug.Fail("Bad Type Converter! " + t.GetType().Name + ", " + t.Message + "," + converter.ToString(), t.ToString());
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
210Debug.Fail("TTM_ADDTOOL failed for " + c.GetType().Name);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
928string compName = component.Site != null ? component.Site.Name : component.GetType().Name;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
1680Debug.WriteLineIf(GridViewDebugPaint.TraceVerbose, "DropDownControl(ctl = " + ctl.GetType().Name + ")"); 5977Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose, "DropDownHolder:SetComponent(" + (ctl.GetType().Name) + ")");
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
205return objValue.GetType().Name;
winforms\Managed\System\WinForms\Screen.cs (1)
482return GetType().Name + "[Bounds=" + bounds.ToString() + " WorkingArea=" + WorkingArea.ToString() + " Primary=" + primary.ToString() + " DeviceName=" + deviceName;
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
420Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ApplyScrollbarChanges(" + display + ") {");
winforms\Managed\System\WinForms\TabControl.cs (1)
2735throw new ArgumentException(SR.GetString(SR.TabControlInvalidTabPageType, value.GetType().Name));
winforms\Managed\System\WinForms\TableLayoutStyleCollection.cs (1)
125throw new ArgumentException(SR.GetString(SR.OnlyOneControl, style.GetType().Name), "style");
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (2)
165messageText = t.GetType().Name; 168messageText = SR.GetString(messageRes, t.GetType().Name, Trim(messageText));
winforms\Managed\System\WinForms\Timer.cs (1)
327cp.Caption = GetType().Name;
winforms\Managed\System\WinForms\ToolStripContainer.cs (3)
465throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfTypes, contentPanelType.Name, panelType.Name)), value.GetType().Name);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1694Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + dx + ", " + dy + ")");
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
58throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeof(ToolStrip).Name)), control.GetType().Name);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
2049throw new NotSupportedException(SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeof(ToolStrip).Name)); 2190throw new NotSupportedException(SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeof(ToolStrip).Name));
winforms\Managed\System\WinForms\UpDownBase.cs (2)
737return this.GetType().Name; 1826return Owner.ParentInternal.GetType().Name;
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1670throw new System.ObjectDisposedException(GetType().Name);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
1015throw new TargetInvocationException(SR.GetString(SR.AXNohWnd, GetType().Name), t); 1054throw new TargetInvocationException(SR.GetString(SR.AXNohWnd, GetType().Name), t);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
561throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeOfControl.Name)), value.GetType().Name);
System.Windows.Forms.DataVisualization (48)
Common\General\BaseClasses.cs (2)
196return GetType().Name; 350string typeName = GetType().Name;
Common\General\BaseCollections.cs (7)
292get { return typeof(T).Name; } 308throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 324throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 327throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 412throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 451throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name)); 475throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name));
Common\Utilities\XmlSerializer.cs (39)
372 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToReset)[pi.Name]; 389 bool resetProperty = IsSerializableContent(pi.Name, objectToReset); 404 MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 431 if(pi.Name == "Item") 437if (pi.Name == "Name") 473MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 485 ResetObjectProperties(pi.GetValue(objectToReset, null), objectToReset, pi.Name); 867 PropertyDescriptor pd = TypeDescriptor.GetProperties(parent)[pi.Name]; 914PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 1511 if(templateListItem && pi.Name == "Name") 1523if (!IsSerializableContent(pi.Name, objectToSerialize)) 1536 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 1550 MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 1564 SerializeCollection(pi.GetValue(objectToSerialize, null), pi.Name, xmlNode, xmlDocument); 1572 if(pi.Name == "Item") 1581 SerializeProperty(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, xmlNode, xmlDocument); 1586 SerializeObject(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, xmlNode, xmlDocument); 2380bool serialize = IsSerializableContent(pi.Name, objectToSerialize); 2386PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToSerialize)[pi.Name]; 2400MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2414 propNamesList.Add(pi.Name); 2415 SerializeCollection(pi.GetValue(objectToSerialize, null), pi.Name, writer); 2423 if(pi.Name == "Item") 2428if (IsSerializableContent(pi.Name, objectToSerialize)) 2434SerializeProperty(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, writer); 2439SerializeObject(pi.GetValue(objectToSerialize, null), objectToSerialize, pi.Name, writer); 2442 propNamesList.Add(pi.Name); 2967if ((SerializerBase.GetStringHashCode(listItemPI.PropertyType.Name)) == typeHash) 2969typeName = listItemPI.PropertyType.Name; 2985if ((SerializerBase.GetStringHashCode(type.Name)) == typeHash) 2987typeName = type.Name; 3041 PropertyDescriptor pd = TypeDescriptor.GetProperties(objectToDeserialize)[pi.Name]; 3047setPropertiesNumber += DeserializeObject(innerObject, objectToDeserialize, pi.Name, reader, !IsSerializableContent(pi.Name, objectToDeserialize)); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3206if (!skipElement && IsSerializableContent(pi.Name, obj)) 3249 if((SerializerBase.GetStringHashCode(pi.Name)) == propertyID) 3259 if(pi.Name == "Item") 3264 if((SerializerBase.GetStringHashCode(pi.Name)) == propertyID)
System.Workflow.Activities (222)
Common\BasePropertyDescriptor.cs (1)
431if (memberInfo.Name.Equals(name, ((ignoreCase) ? StringComparison.CurrentCultureIgnoreCase : StringComparison.CurrentCulture)))
Common\CompModHelpers.cs (8)
309SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name)); 358SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name)); 387string baseIdentifier = activity.GetType().Name; 435SR.GetString(SR.General_MissingService, typeof(ITypeProvider).Name)); 646Type type = basetypeProvider.GetPropertyType(serviceProvider, property.Name); 672return basetypeProvider.GetAccessType(serviceProvider, property.Name); 746bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(method.Name, name, StringComparison.Ordinal) == 0;
Common\Walker.cs (2)
206DependencyProperty dependencyProperty = DependencyProperty.FromName(prop.Name, obj.GetType()); 269if (prop.DeclaringType == typeof(CompositeActivity) && string.Equals(prop.Name, "Activities", StringComparison.Ordinal))
ConstrainedGroup.cs (1)
165throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name));
CorrelationValidator.cs (51)
79ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), methodInfo.Name), ErrorNumbers.Error_GenericMethodsNotSupported); 428string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name), ErrorNumbers.Error_GenericMethodsNotSupported); 430error.UserData.Add(typeof(EventInfo), ((EventInfo)memberInfo).Name); 432error.UserData.Add(typeof(MethodInfo), methodInfo.Name); 439string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ReturnTypeNotVoid), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name), ErrorNumbers.Error_ReturnTypeNotVoid); 441error.UserData.Add(typeof(EventInfo), ((EventInfo)memberInfo).Name); 443error.UserData.Add(typeof(MethodInfo), methodInfo.Name); 452string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_OutRefParameterNotSupported), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name, param.Name), ErrorNumbers.Error_OutRefParameterNotSupported); 454error.UserData.Add(typeof(EventInfo), ((EventInfo)memberInfo).Name); 456error.UserData.Add(typeof(MethodInfo), methodInfo.Name); 478ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationParameterAttribute).Name, "Name", interfaceType.Name), ErrorNumbers.Error_CorrelationAttributeInvalid); 479error.UserData.Add(typeof(CorrelationParameterAttribute), interfaceType.Name); 485ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationParameterAttribute).Name, parameterAttribute.Name, interfaceType.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute); 486error.UserData.Add(typeof(CorrelationParameterAttribute), interfaceType.Name); 576ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationParameterNotFound, typeof(CorrelationAliasAttribute).Name, paramName, memberInfo.Name, typeof(CorrelationParameterAttribute).Name, interfaceType.Name), ErrorNumbers.Error_CorrelationParameterNotFound); 577error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 602ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInvalid, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramName), ErrorNumbers.Error_CorrelationInvalid); 603error.UserData.Add(typeof(CorrelationParameterAttribute), (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name); 609ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name), ErrorNumbers.Error_CorrelationTypeNotConsistent); 610error.UserData.Add(typeof(CorrelationAliasAttribute), (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name); 618ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInitializerNotDefinied, interfaceType.Name), ErrorNumbers.Error_CorrelationInitializerNotDefinied); 619error.UserData.Add(typeof(CorrelationInitializerAttribute), interfaceType.Name); 645ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_MissingCorrelationParameterAttribute, interfaceType.Name), ErrorNumbers.Error_MissingCorrelationParameterAttribute); 646error.UserData.Add(typeof(CorrelationParameterAttribute), interfaceType.Name); 675ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Name", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid); 676error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 683ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Path", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid); 684error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 691ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationAliasAttribute).Name, aliasAttribute.Name, memberInfo.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute); 692error.UserData.Add(typeof(CorrelationAliasAttribute), memberInfo.Name); 766if (String.Compare(propertyInfo.Name, parsedPropertyName[index], StringComparison.Ordinal) == 0) 784if (String.Compare(fieldInfo.Name, parsedPropertyName[index], StringComparison.Ordinal) == 0)
Designers\StateDesigner.cs (5)
281text = this.Activity.GetType().Name; 1968child.GetType().Name)); 2394if (property.Name.Equals("Location", StringComparison.Ordinal) || 2395property.Name.Equals("Size", StringComparison.Ordinal)) 2437return this.realPropertyInfo.Name;
EventHandlingScope.cs (1)
234validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneEventHandlersDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl));
EventSinkActivity.cs (2)
178names.Add(eventInfo.Name); 203throw new InvalidOperationException(SR.GetString(SR.MethodInfoMissing, this.EventName, this.InterfaceType.Name));
InvokeMethodActivity.cs (2)
150names.Add(method.Name); 172throw new InvalidOperationException(SR.GetString(SR.MethodInfoMissing, this.MethodName, this.InterfaceType.Name));
InvokeWebService.cs (1)
343names.Add(method.Name);
LocalService\CorrelationResolver.cs (2)
278members.Add(member.Name, true); 285members.Add(member.Name, false);
LocalService\CorrelationService.cs (5)
264CreateFollowerEntry(context, interfaceType, followermethodName, e.Name); 275WorkflowActivityTrace.Activity.TraceEvent(TraceEventType.Information, 0, "Creating follower {0} on initializer {1}", interfaceType.Name + followermethodName, interfaceType.Name + initializermethodName); 302string follower = e.Name; 303if (!CorrelationResolver.IsInitializingMember(interfaceType, e.Name, null))
LocalService\ExternalDataExchangeService.cs (2)
291int hash = type.GetHashCode() ^ e.Name.GetHashCode(); 304AddRemove(service, handler.Delegate, add, e.Name);
LocalService\FollowerQueueCreator.cs (1)
53WorkflowActivityTrace.Activity.TraceEvent(TraceEventType.Information, 0, "FollowerQueueCreator: initialized on operation {0} for follower {1}", staticId.InterfaceType.Name + staticId.MethodName, this.followerOperation);
LocalService\WorkflowMessageEventHandler.cs (1)
58this.eventName = eventInfo.Name;
Rules\CodeDomDecompiler.cs (3)
211typeName = type.Name; 330if (knownOperatorMap.TryGetValue(method.Name, out operatorName)) 333sb.Append(method.Name);
Rules\DeclarativeExpressionConditionDeclaration.cs (2)
352string message = string.Format(CultureInfo.CurrentCulture, Messages.ContextStackItemMissing, typeof(Activity).Name); 359string message = string.Format(CultureInfo.CurrentCulture, Messages.ContextStackItemMissing, typeof(PropertyValidationContext).Name);
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
356listViewItem = new ListViewItem(((MemberInfo)item).Name as string); 527toolTipText.Append(methodInfo.Name);
Rules\Executor.cs (6)
67string message = string.Format(CultureInfo.CurrentCulture, Messages.TargetEvaluatedNullField, fieldInfo.Name); 81string message = string.Format(CultureInfo.CurrentCulture, Messages.TargetEvaluatedNullField, fieldInfo.Name); 115string message = string.Format(CultureInfo.CurrentCulture, Messages.TargetEvaluatedNullProperty, propertyInfo.Name); 131RuleDecompiler.DecompileType(propertyInfo.ReflectedType), propertyInfo.Name, e.InnerException.Message); 141string message = string.Format(CultureInfo.CurrentCulture, Messages.TargetEvaluatedNullProperty, propertyInfo.Name); 157RuleDecompiler.DecompileType(propertyInfo.ReflectedType), propertyInfo.Name, e.InnerException.Message);
Rules\Expressions.cs (11)
973if (!validation.ValidateMemberAccess(fieldRefExpr.TargetObject, targetType, fi, fi.Name, fieldRefExpr)) 1195RuleExpressionWalker.AnalyzeUsage(analysis, targetObject, isRead, isWritten, new RulePathQualifier(pi.Name, qualifier)); 1592Array paramsArray = (Array)arrayType.InvokeMember(arrayType.Name, BindingFlags.CreateInstance, null, null, new object[] { actualArgCount - i }, CultureInfo.CurrentCulture); 1615RuleDecompiler.DecompileType(mi.ReflectedType), mi.Name, e.InnerException.Message); 2392message = string.Format(CultureInfo.CurrentCulture, baseMessage, pi.Name, RuleDecompiler.DecompileType(targetType)); 2399if (!validation.ValidateMemberAccess(targetObject, targetType, accessorMethod, pi.Name, indexerExpr)) 2543Array paramsArray = (Array)arrayType.InvokeMember(arrayType.Name, BindingFlags.CreateInstance, null, null, new object[] { actualArgCount - i }, CultureInfo.CurrentCulture); 3246message = string.Format(CultureInfo.CurrentCulture, Messages.ArrayTypeInvalid, resultType.Name); 3278message = string.Format(CultureInfo.CurrentCulture, Messages.ArraySizeTypeInvalid, sizeInfo.ExpressionType.Name); 3291message = string.Format(CultureInfo.CurrentCulture, Messages.MissingInitializer, resultType.Name); 3315message = string.Format(CultureInfo.CurrentCulture, Messages.InitializerMismatch, i, resultType.Name);
Rules\Helpers.cs (1)
212string resourceName = workflowType.Name + ".rules";
Rules\Literal.cs (6)
717if (mi.Name == methodName) 754if (mi.Name == methodName) 825if ((mi.Name == methodName) && (parameters.Length == 2)) 846if ((mi.Name == methodName) && (parameters.Length == 2)) 866if ((mi.Name == methodName) && (parameters.Length == 2)) 888if ((mi.Name == methodName) && (parameters.Length == 2))
Rules\Parser\Parser.cs (16)
292filteredMembers[member.Name] = member; 303filteredMembers[member.Name] = member; 312filteredMembers[member.Name] = member; 326filteredMembers[accessor.Name] = accessor; 334filteredMembers[member.Name] = member; 344filteredMembers[member.Name] = member; 396filteredMembers[member.Name] = member; 823localUniqueSymbols[mi.Name] = new MemberSymbol(mi); 837localUniqueSymbols[mi.Name] = new MemberSymbol(accessor); 845localUniqueSymbols[mi.Name] = new MemberSymbol(mi); 855localUniqueSymbols[mi.Name] = new MemberSymbol(mi); 870localUniqueSymbols[mi.Name] = new MemberSymbol(mi); 2268if (candidateType.Name.StartsWith(prefix, StringComparison.Ordinal)) 2658Array paramsArgs = (Array)paramType.InvokeMember(paramType.Name, BindingFlags.CreateInstance, null, null, new object[] { numArgs - fixedParameterCount }, CultureInfo.CurrentCulture); 2748message = string.Format(CultureInfo.CurrentCulture, Messages.UnknownMethod, type.Name, RuleDecompiler.DecompileType(type)); 2759message = string.Format(CultureInfo.CurrentCulture, Messages.AmbiguousConstructor, type.Name);
Rules\Parser\Symbol.cs (5)
34get { return member.Name; } 179this.name = type.Name; 183int tickIx = type.Name.LastIndexOf('`'); 186string count = type.Name.Substring(tickIx + 1); 188name = type.Name.Substring(0, tickIx);
Rules\RuleAttributes.cs (6)
97message = string.Format(CultureInfo.CurrentCulture, Messages.InvalidRuleAttributeParameter, firstPart, member.Name); 330message = string.Format(CultureInfo.CurrentCulture, Messages.AttributeMethodNotFound, member.Name, this.GetType().Name, Messages.NullValue); 346message = string.Format(CultureInfo.CurrentCulture, Messages.AttributeMethodNotFound, member.Name, this.GetType().Name, methodInvoked); 373message = string.Format(CultureInfo.CurrentCulture, Messages.InvokeAttrRefersToParameterAttribute, mi.Name);
Rules\RuleSetReference.cs (2)
108string message = string.Format(CultureInfo.CurrentCulture, Messages.ContextStackItemMissing, typeof(Activity).Name); 114string message = string.Format(CultureInfo.CurrentCulture, Messages.ContextStackItemMissing, typeof(PropertyValidationContext).Name);
Rules\RuleValidation.cs (7)
274get { return actualMethod.Name; } 386get { return actualMethod.Name; } 2222if ((mi.Name == "op_Implicit") && (mi.GetParameters().Length == 1)) 2245if (((mi.Name == "op_Implicit") || (mi.Name == "op_Explicit")) && (mi.GetParameters().Length == 1)) 2949string candidateName = candidateMember.Name; 3614if (defaultMemberAttrs[dm].MemberName == pi.Name)
Rules\Walker.cs (2)
134if ((validation.ThisType != null) && (validation.ThisType.Name != null)) 136typeName = validation.ThisType.Name;
SR.cs (58)
255typeof(StateActivity).Name); 262typeof(StateActivity).Name); 269typeof(StateActivity).Name, 270typeof(EventDrivenActivity).Name, 271typeof(StateInitializationActivity).Name, 272typeof(StateFinalizationActivity).Name); 279typeof(StateMachineWorkflowActivity).Name, 280typeof(StateActivity).Name, 281typeof(EventDrivenActivity).Name); 288typeof(SetStateActivity).Name, 289typeof(EventDrivenActivity).Name, 290typeof(StateInitializationActivity).Name, 291typeof(StateMachineWorkflowActivity).Name, 292typeof(StateActivity).Name); 300typeof(StateActivity).Name); 307typeof(StateActivity).Name, 308typeof(StateMachineWorkflowActivity).Name, 316typeof(StateMachineWorkflowActivity).Name, 324typeof(StateActivity).Name); 331typeof(StateActivity).Name); 339typeof(StateActivity).Name); 346typeof(StateActivity).Name); 353typeof(StateActivity).Name); 370typeof(StateInitializationActivity).Name, 371typeof(StateActivity).Name); 377typeof(StateFinalizationActivity).Name, 378typeof(StateActivity).Name); 385typeof(StateInitializationActivity).Name, 392typeof(StateFinalizationActivity).Name, 400typeof(StateInitializationActivity).Name, 401typeof(StateActivity).Name); 407typeof(StateFinalizationActivity).Name, 408typeof(StateActivity).Name); 415typeof(SetStateActivity).Name, 417typeof(StateActivity).Name, 418typeof(StateInitializationActivity).Name); 425typeof(StateActivity).Name, 433typeof(EventDrivenActivity).Name, 435typeof(StateActivity).Name, 451typeof(StateMachineWorkflowActivity).Name); 466typeof(StateMachineWorkflowInstance).Name, 467typeof(StateMachineWorkflowActivity).Name); 475typeof(StateActivity).Name); 495typeof(SetStateActivity).Name, 496typeof(StateInitializationActivity).Name); 503typeof(StateActivity).Name, 512typeof(StateActivity).Name, 513typeof(StateMachineAction).Name, 521typeof(StateMachineWorkflowActivity).Name); 531typeof(EventDrivenActivity).Name, 532typeof(ListenActivity).Name, 533typeof(EventHandlersActivity).Name, 534typeof(StateActivity).Name, 535typeof(StateMachineWorkflowActivity).Name); 543typeof(EventDrivenActivity).Name, 545typeof(HandleExternalEventActivity).Name, 546typeof(DelayActivity).Name); 568return GetString(MoveSetState, typeof(SetStateActivity).Name);
StateValidator.cs (1)
360SR.GetString(SR.Error_EventDrivenMultipleEventActivity, eventDriven.Name, typeof(IEventActivity).FullName, typeof(EventDrivenActivity).Name),
WebServiceReceive.cs (7)
190names.Add(method.Name); 197names.Add(interfaceType.FullName + "." + method.Name); 662throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(CodeNamespaceCollection).Name)); 679if (member is CodeMemberMethod && String.Compare(member.Name, methodInfo.Name, language == SupportedLanguages.CSharp ? StringComparison.InvariantCulture : StringComparison.InvariantCultureIgnoreCase) == 0) 790webMethod.Name = methodInfo.Name; 793attrDecl.Arguments.Add(new CodeAttributeArgument("Description", new CodePrimitiveExpression(methodInfo.Name))); 834baseInvokeExpression.Parameters.Add(new CodePrimitiveExpression(methodInfo.Name));
WebServiceResponse.cs (2)
693validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ParameterTypeNotFound, methodInfo.Name, paramInfo.Name), ErrorNumbers.Error_ParameterTypeNotFound)); 699validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ReturnTypeNotFound, methodInfo.Name), ErrorNumbers.Error_ReturnTypeNotFound));
System.Workflow.ComponentModel (204)
AuthoringOM\Activity.cs (2)
249SetValue(NameProperty, GetType().Name); 2407if (activity != null && (activity.Name == null || activity.Name.Length == 0 || activity.Name == activity.GetType().Name))
AuthoringOM\Behaviors\ExceptionHandlers.cs (3)
192validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ScopeDuplicateFaultHandlerActivityFor), new object[] { Helpers.GetEnclosingActivity(exceptionHandlers).GetType().Name, catchType.FullName }), ErrorNumbers.Error_ScopeDuplicateFaultHandlerActivityFor)); 200validationErrors.Add(new ValidationError(SR.GetString(SR.Error_FaultHandlerActivityWrongOrder, catchType.Name, previousType.Name), ErrorNumbers.Error_FaultHandlerActivityWrongOrder));
AuthoringOM\Bind.cs (6)
112DependencyProperty dependencyProperty = DependencyProperty.FromName(evt.Name, dependencyObject.GetType()); 244throw new InvalidOperationException(SR.GetString(SR.Error_ReadOnlyField, memberInfo.Name)); 918values.Add(memberInfo.Name); 1071DependencyProperty eventDependencyProperty = DependencyProperty.FromName(evt.Name, value.GetType()); 1090DependencyProperty dependencyProperty = DependencyProperty.FromName(eventArgs.MemberInfo.Name, value.GetType()); 1447ActivityBindPropertyInfo properyInfo = new ActivityBindPropertyInfo(propertyType, getterMethod, setterMethod, memberPropertyInfo.Name, memberPropertyInfo);
AuthoringOM\Compiler\CodeGeneration\ActivityCodeGenerator.cs (1)
65throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(CodeNamespaceCollection).Name));
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
1161if (nestedType.Name.Equals(Helper.EnsureTypeName(codeType.Name))) 1210this.name = memberInfo.Name;
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (12)
262baseType = this.typeProvider.GetType(type.Namespace + "." + type.Name); 266string baseTypeName = type.Name; 270baseTypeName = baseType.Name + "+" + baseTypeName; 697bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(method.Name, name, StringComparison.Ordinal) == 0; 724bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(propInfo.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(propInfo.Name, name, StringComparison.Ordinal) == 0; 861get { return this.ctorInfo.Name; } 932get { return this.fieldInfo.Name; } 1035get { return this.propertyInfo.Name; } 1154get { return this.methodInfo.Name; } 1225get { return this.eventInfo.Name; }
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
800names.Add(flds[i].Name);
AuthoringOM\Compiler\Validation\BindValidator.cs (23)
48throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(BindValidationContext).Name)); 52throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 188error = new ValidationError(SR.GetString(SR.Error_PropertyNoGetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoGetter); 193error = new ValidationError(SR.GetString(SR.Error_PropertyNoSetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoSetter); 203error = new ValidationError(SR.GetString(SR.Error_ReadOnlyField, pathFieldInfo.Name), ErrorNumbers.Error_ReadOnlyField); 233throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(BindValidationContext).Name)); 237throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 385error = new ValidationError(SR.GetString(SR.Error_PropertyNoGetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoGetter); 390error = new ValidationError(SR.GetString(SR.Error_PropertyNoSetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoSetter); 400error = new ValidationError(SR.GetString(SR.Error_ReadOnlyField, pathFieldInfo.Name), ErrorNumbers.Error_ReadOnlyField); 430throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(BindValidationContext).Name)); 434throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 590throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 594throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(BindValidationContext).Name)); 727error = new ValidationError(SR.GetString(SR.Error_PathCouldNotBeResolvedToMember, bind.Path, (!string.IsNullOrEmpty(refActivity.QualifiedName)) ? refActivity.QualifiedName : refActivity.GetType().Name), ErrorNumbers.Error_PathCouldNotBeResolvedToMember); 757throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(BindValidationContext).Name)); 761throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 801throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name)); 869error = new ValidationError(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, memberType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch); 886DependencyProperty dependencyProperty = DependencyProperty.FromName(memberInfo.Name, memberInfo.DeclaringType); 907error = new ValidationError(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, memberType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch); 940propertyValidationContext = new PropertyValidationContext(refActivity, memberInfo as PropertyInfo, memberInfo.Name); 950error = new ValidationError(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, value.GetType().FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch);
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (3)
32validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneCancelHandler, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl)); 36validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneFaultHandlersActivityDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneFaultHandlersActivityDecl)); 40validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneCompensationDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneCompensationDecl));
AuthoringOM\Compiler\Validation\Validator.cs (2)
54DependencyProperty dependencyProperty = DependencyProperty.FromName(args.CurrentProperty.Name, args.CurrentProperty.DeclaringType); 107PropertyValidationContext propertyValidationContext = new PropertyValidationContext(propertyOwner, propertyInfo, propertyInfo.Name);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
612string identifier = (Helpers.GetRootActivity(activity) != activity) ? activity.QualifiedName : activity.GetType().Name;
AuthoringOM\ComponentFactoryHelpers.cs (1)
125throw new InvalidOperationException(SR.GetString(SR.Error_InvalidAttribute, componentTypeAttribute.Name, objectType.FullName));
AuthoringOM\Design\ActivityDesigner.cs (5)
764title = Activity.GetType().Name; 769title = DR.GetString(DR.InfoTipTitle, Activity.GetType().Name, activityName); 1131this.Text = (!String.IsNullOrEmpty(activity.Name)) ? activity.Name : activity.GetType().Name; 2128if (!customPropertyNames.Contains(memberInfo.Name)) 2129customPropertyNames.Add(memberInfo.Name);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (2)
73return DR.GetString(DR.ActivityDesignerAccessibleDescription, this.activityDesigner.Activity.GetType().Name); 81return DR.GetString(DR.ActivityDesignerAccessibleHelp, this.activityDesigner.Activity.GetType().Name);
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
161property.Name.Equals("AutoSizeMargin", StringComparison.Ordinal) &&
AuthoringOM\Design\ComponentSerializationService.cs (3)
114if (prop.Name.Equals(name, StringComparison.Ordinal)) 485propertyDesc = TypeDescriptor.GetProperties(this.obj)[this.property.Name]; 805return this.realPropInfo.Name;
AuthoringOM\Design\CompositeActivityDesigner.cs (4)
560throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(ComponentSerializationService).Name)); 595throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name)); 610throw new Exception(SR.GetString(SR.General_MissingService, typeof(ComponentSerializationService).Name)); 661throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name));
AuthoringOM\Design\Connector.cs (1)
772return this.connector.GetType().Name;
AuthoringOM\Design\CustomActivityDesigner.cs (9)
433customProperty.Name = member.Name; 444FieldInfo fieldInfo = customActivityType.GetField(member.Name + fieldSuffix, BindingFlags.Public | BindingFlags.Static); 453customProperty.oldPropertyName = member.Name; 540if (property.Name == customProperty.oldPropertyName && 548memberCreationService.RemoveProperty(customActivityType.FullName, property.Name, property.PropertyType); 557if (evtInfo.Name == customProperty.oldPropertyName && 564if (!found && evtInfo.Name != null && evtInfo.EventHandlerType != null) 565memberCreationService.RemoveEvent(customActivityType.FullName, evtInfo.Name, evtInfo.EventHandlerType); 660attributeList.Add(new AttributeInfo(typeof(DesignerSerializationVisibilityAttribute), new string[] { }, new object[] { new CodeSnippetExpression(typeof(DesignerSerializationVisibility).Name + "." + property.DesignerSerializationVisibility.ToString()) }));
AuthoringOM\Design\DesignerHelpers.cs (3)
1601name = component.GetType().Name; 1647compatibleMethods.Add(method.Name); 1672if (!(member is MethodInfo) && string.Compare(member.Name, uniqueName, StringComparison.OrdinalIgnoreCase) == 0)
AuthoringOM\Design\DesignerWidgets.cs (2)
2985description = DR.GetString(DR.ActivityDesignerAccessibleDescription, activityDesigner.Activity.GetType().Name); 3009help = DR.GetString(DR.ActivityDesignerAccessibleHelp, activityDesigner.Activity.GetType().Name);
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (5)
333if (string.Compare(memberInfo.Name, newMemberName, language == SupportedLanguages.VB, CultureInfo.InvariantCulture) == 0) 341if (errorMsg == null && string.Compare(customActivityType.Name, newMemberName, language == SupportedLanguages.VB, CultureInfo.InvariantCulture) == 0) 641string propertyName = property.Name; 672string fieldName = currentPath + field.Name; 694paths.Add(new PathInfo(currentPath + eventInfo.Name, eventInfo, eventType));
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1087Activity.Name = Activity.GetType().Name + id.ToString(CultureInfo.InvariantCulture);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (6)
883listItem.Text = type.Name; 1225keywords[0] = selectedType.Name; 1372return SR.GetString(SR.FilterDescription_GenericArgument, this.parameterType.Name); 1416newProps.Add(new ParameterDataPropertyDescriptor(context, TypeDescriptor.CreateProperty(typeof(GenericParameters), parameterData.ParameterType.Name, typeof(ParameterData)))); 1561if (parameterData.ParameterType.Name == this.Name) 1572if (parameterData.ParameterType.Name == this.Name)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
107throw new InvalidOperationException(DR.GetString(DR.WorkflowPrintDocumentNotFound, typeof(WorkflowPrintDocument).Name));
AuthoringOM\Design\IdentifierCreationService.cs (5)
92identifiers[member.Name] = member.Name; 157identifiers[member.Name] = member.Name; 168if (string.IsNullOrEmpty(activity.Name) || string.Equals(activity.Name, activity.GetType().Name, StringComparison.Ordinal))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
666description = draggedActivities[0].GetType().Name;
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
472CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, compositeActivity.Activities.Count), new List<Activity>(new Activity[] { branchActivity }).AsReadOnly(), DR.GetString(DR.AddingBranch, branchActivity.GetType().Name));
AuthoringOM\Design\PropertyDescriptors.cs (5)
472if (memberInfo.DeclaringType == typeof(System.Object) && (string.Equals(memberInfo.Name, "Equals", StringComparison.Ordinal) || string.Equals(memberInfo.Name, "ReferenceEquals", StringComparison.Ordinal))) 667throw new InvalidOperationException(SR.GetString(SR.Error_PropertyTypeNotDefined, context.PropertyDescriptor.Name, typeof(ActivityBind).Name, typeof(IDynamicPropertyTypeProvider).Name)); 701if (memberInfo.Name.Equals(name, ((ignoreCase) ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)))
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (2)
123return DR.GetString(DR.ConnectorAccessibleDescription, this.connectorHitInfo.GetType().Name); 131return DR.GetString(DR.ConnectorAccessibleHelp, this.connectorHitInfo.GetType().Name);
AuthoringOM\Design\WinOEToolBoxItem.cs (7)
29if (type.Name != null) 31string name = type.Name; 35type.Name.EndsWith(ActivitySuffix, StringComparison.Ordinal) && 36!type.Name.Equals(ActivitySuffix, StringComparison.Ordinal)) 38name = type.Name.Substring(0, type.Name.Length - ActivitySuffix.Length); 120string displayName = activityType.Name;
AuthoringOM\Design\WorkflowInlining.cs (4)
382string.Equals(parameterProperty.Name, "DynamicUpdateCondition", StringComparison.Ordinal))) 394if (dependencyProperty.Name == parameterProperty.Name && dependencyProperty.DefaultMetadata.IsMetaProperty) 404PropertyDescriptor prop = new ParameterInfoBasedPropertyDescriptor(Type.GetType(InvokeWorkflowRef), parameterProperty.Name, parameterProperty.PropertyType, ReservedParameterNames.Contains(parameterProperty.Name), DesignOnlyAttribute.Yes);
AuthoringOM\Design\XomlDesignerLoader.cs (1)
458string resourceName = rootActivityType.Name + WorkflowDesignerLoader.DesignerLayoutFileExtension;
AuthoringOM\Serializer\ActivitySurrogate.cs (4)
47Debug.Assert(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed"); 265Debug.Assert(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed");
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
77return this.realPropertyInfo.Name;
AuthoringOM\Serializer\FormatterServicesNoSerializableCheck.cs (5)
118typeNames[index] = typeMembers[index].Name; 143String typeName = classNamesUnique ? parentType.Name : parentType.FullName; 150allNames.Add(String.Concat(typeName, FakeNameSeparatorString, field.Name)); 186string t1Name = t1.Name; 189string t2Name = parentTypes[i].Name;
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (3)
136writer.WriteString(serializableProperty.Name); 152serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNoSerializeLogic, new object[] { serializableProperty.Name, value.GetType().FullName }))); 158serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNoSerializeLogic, new object[] { serializableProperty.Name, value.GetType().FullName })));
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (33)
105if ((string.IsNullOrEmpty(rootActivity.Name) || rootActivity.Name == rootActivity.GetType().Name) && !string.IsNullOrEmpty(rootActivity.GetValue(WorkflowMarkupSerializer.XClassProperty) as string)) 754if (propInfo != null && !allProperties.ContainsKey(propInfo.Name)) 755allProperties.Add(propInfo.Name, propInfo); 764if (eventInfo != null && !allProperties.ContainsKey(eventInfo.Name)) 765allProperties.Add(eventInfo.Name, eventInfo); 788propertyName = property.Name; 796DependencyProperty dependencyProperty = DependencyProperty.FromName(property.Name, property.ReflectedType); 802string key = property.ReflectedType.FullName + "." + property.Name; 814propertyName = evt.Name; 815propertyValue = WorkflowMarkupSerializationHelpers.GetEventHandlerName(obj, evt.Name); 966propertyName = property.Name; 1199return ((Delegate)value).Method.Name; 1397if (name == null || !name.Equals(property.Name)) 1899serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, new object[] { propertyName, propertyName, obj.GetType().Name }))); 1933serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerPrimitivePropertyReadOnly, new object[] { property.Name, property.Name, obj.GetType().FullName }), reader)); 1996WorkflowMarkupSerializationHelpers.SetEventHandlerName(obj, evt.Name, memberValue as string); 2014string key = property.ReflectedType.FullName + "." + property.Name; 2374tagName = qualifiedName.Name + "." + ((MemberInfo)property).Name; 2379tagName = ((MemberInfo)property).Name; 2433if (property.Name == propertyName) 2446if (evt.Name == eventName) 3012this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyCanNotBeNull, this.contentProperty.Name, this.parentObject.GetType().FullName))); 3035this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoSetter, this.contentProperty.Name, this.parentObject.GetType()), contents[0].LineNumber, contents[0].LinePosition)); 3040this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoMultipleContents, this.contentProperty.Name, this.parentObject.GetType()), contents[1].LineNumber, contents[1].LinePosition)); 3059this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentCanNotBeConverted, content as string, contentProperty.Name, this.parentObject.GetType().FullName, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3063this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyValueInvalid, content.GetType(), this.contentProperty.Name, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3123string extensionName = type.Name; 3134if (typeName.Equals(typeof(Array).Name, StringComparison.Ordinal)) 3135typeName = typeof(ArrayExtension).Name; 3152if (xmlQualifiedName.Name.Equals(typeof(Array).Name) || string.Equals(xmlQualifiedName.Name, "Null", StringComparison.Ordinal) || string.Equals(xmlQualifiedName.Name, typeof(NullExtension).Name, StringComparison.Ordinal) || string.Equals(xmlQualifiedName.Name, "Type", StringComparison.Ordinal) || string.Equals(xmlQualifiedName.Name, typeof(TypeExtension).Name, StringComparison.Ordinal))
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (21)
47WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(ThrowActivity).Name, typeof(ThrowActivity)); 48WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(ThrowDesigner).Name, typeof(ThrowDesigner)); 49WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(SuspendActivity).Name, typeof(SuspendActivity)); 50WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(SuspendDesigner).Name, typeof(SuspendDesigner)); 51WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CancellationHandlerActivity).Name, typeof(CancellationHandlerActivity)); 52WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CancellationHandlerActivityDesigner).Name, typeof(CancellationHandlerActivityDesigner)); 53WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CompensateActivity).Name, typeof(CompensateActivity)); 54WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CompensateDesigner).Name, typeof(CompensateDesigner)); 55WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CompensationHandlerActivity).Name, typeof(CompensationHandlerActivity)); 56WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CompensationHandlerActivityDesigner).Name, typeof(CompensationHandlerActivityDesigner)); 57WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(FaultHandlerActivity).Name, typeof(FaultHandlerActivity)); 58WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(FaultHandlerActivityDesigner).Name, typeof(FaultHandlerActivityDesigner)); 59WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(FaultHandlersActivity).Name, typeof(FaultHandlersActivity)); 60WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(FaultHandlersActivityDesigner).Name, typeof(FaultHandlersActivityDesigner)); 61WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(SynchronizationScopeActivity).Name, typeof(SynchronizationScopeActivity)); 62WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(SequenceDesigner).Name, typeof(SequenceDesigner)); 63WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(TransactionScopeActivity).Name, typeof(TransactionScopeActivity)); 64WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(TransactionScopeActivityDesigner).Name, typeof(TransactionScopeActivityDesigner)); 65WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(PropertySegment).Name, typeof(PropertySegment)); 66WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(CompensatableTransactionScopeActivity).Name, typeof(CompensatableTransactionScopeActivity)); 67WorkflowMarkupSerializerMapping.wellKnownTypes.Add(typeof(ActivityDesigner).Name, typeof(ActivityDesigner));
Shared\BasePropertyDescriptor.cs (1)
430if (memberInfo.Name.Equals(name, ((ignoreCase) ? StringComparison.CurrentCultureIgnoreCase : StringComparison.CurrentCulture)))
Shared\CompModHelpers.cs (8)
307SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name)); 356SR.GetString(SR.General_MissingService, typeof(IDesignerHost).Name)); 385string baseIdentifier = activity.GetType().Name; 433SR.GetString(SR.General_MissingService, typeof(ITypeProvider).Name)); 644Type type = basetypeProvider.GetPropertyType(serviceProvider, property.Name); 670return basetypeProvider.GetAccessType(serviceProvider, property.Name); 744bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(method.Name, name, StringComparison.Ordinal) == 0;
Shared\Walker.cs (2)
205DependencyProperty dependencyProperty = DependencyProperty.FromName(prop.Name, obj.GetType()); 268if (prop.DeclaringType == typeof(CompositeActivity) && string.Equals(prop.Name, "Activities", StringComparison.Ordinal))
System.Workflow.Runtime (46)
DebugEngine\DebugController.cs (3)
1015this.controllerConduit.ScheduleTypeLoaded(this.programId, scheduleTypeId, scheduleType.Assembly.FullName, fileName, md5Digest, isDynamic, scheduleType.FullName, scheduleType.Name, stringWriter.ToString()); 1106DependencyProperty dependencyEvent = DependencyProperty.FromName(eventInfo.Name, activity.GetType()); 1117handlerMethod.Name = handlerMethodInfo.DeclaringType.FullName + "." + handlerMethodInfo.Name;
Hosting\WorkflowRuntimeService.cs (4)
67throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotAddedToRuntime, this.GetType().Name)); 69throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceAlreadyStarted, this.GetType().Name)); 77throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotAddedToRuntime, this.GetType().Name)); 79throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotStarted, this.GetType().Name));
System\Activities\Statements\Interop.cs (7)
233propertyInName = propertyInfo.Name + Interop.InArgumentSuffix; 237propertyInName = propertyInfo.Name; 240string propertyOutName = propertyInfo.Name + Interop.OutArgumentSuffix; 638InteropProperty descriptor = new LiteralProperty(this, property.Name, property.PropertyType, newAttributes); 647inDescriptor = new ArgumentProperty(this, property.Name + InArgumentSuffix, Argument.Create(property.PropertyType, ArgumentDirection.In), newAttributes); 651inDescriptor = new ArgumentProperty(this, property.Name, Argument.Create(property.PropertyType, ArgumentDirection.In), newAttributes); 655InteropProperty outDescriptor = new ArgumentProperty(this, property.Name + OutArgumentSuffix, Argument.Create(property.PropertyType, ArgumentDirection.Out), newAttributes);
System\Activities\Statements\InteropEnvironment.cs (4)
313propertyNames.Add(propertyInfo.Name); 326if (propertyNames.Contains(propertyInfo.Name + Interop.OutArgumentSuffix)) 360!String.Equals(propertyInfo.Name, activityNameMetaProperty, StringComparison.Ordinal)) 372string dependencyPropertyName = propertyInfo.Name;
System\Activities\Statements\InteropExecutor.cs (1)
513this.outputs.Add(property.Name + Interop.OutArgumentSuffix, property.GetValue(this.rootActivity, null));
Tracking\PropertyHelper.cs (8)
97throw new MissingMemberException(o.GetType().Name, tmp); 181if (!PropertyHelper.IsInternalVariable(f.Name)) 184data.FieldName = f.Name; 201if (!IsInternalVariable(p.Name)) 210data.FieldName = p.Name; 272if ((null == members) || (0 == members.Length) || (null == members[0].Name) || (0 == members[0].Name.Length)) 275realName = members[0].Name;
Tracking\SqlTrackingService.cs (3)
462WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlTrackingService.ExecuteRetried " + executeRetried.Method.Name + " start: " + DateTime.UtcNow.ToString("G", System.Globalization.CultureInfo.InvariantCulture)); 464WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlTrackingService.ExecuteRetried " + executeRetried.Method.Name + " end: " + DateTime.UtcNow.ToString("G", System.Globalization.CultureInfo.InvariantCulture)); 473WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlTrackingService.ExecuteRetried " + executeRetried.Method.Name + " retrying.");
Tracking\TrackingLocation.cs (2)
432if (0 == string.Compare(objType.Name, name, StringComparison.Ordinal)) 452if (0 == string.Compare(b.Name, name, StringComparison.Ordinal))
Tracking\TrackingProfileSerializer.cs (8)
589if (0 != string.Compare(condition.GetType().Name, reader.Name, StringComparison.Ordinal)) 590throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationInvalidPosition + condition.GetType().Name); 627if (0 == string.Compare(reader.Name, condition.GetType().Name, StringComparison.Ordinal)) 634throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationCloseElementNotFound + condition.GetType().Name); 708if (0 == string.Compare(reader.Name, extract.GetType().Name, StringComparison.Ordinal)) 715throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationCloseElementNotFound + extract.GetType().Name); 1202writer.WriteStartElement(extract.GetType().Name); 1238writer.WriteStartElement(condition.GetType().Name);
WorkflowDefinitionDispenser.cs (1)
350if (dependencyProperty.Name == property.Name && dependencyProperty.DefaultMetadata.IsMetaProperty)
WorkflowRuntime.cs (5)
1133typeof(WorkflowCommitWorkBatchService).Name)); 1138typeof(WorkflowSchedulerService).Name)); 1143typeof(WorkflowLoaderService).Name)); 1148typeof(WorkflowPersistenceService).Name)); 1273args.OutputParameters.Add(property.Name, property.GetValue(exec.RootActivity, null));
System.WorkflowServices (45)
System\ServiceModel\Description\DurableOperationAttribute.cs (1)
85typeof(DurableOperationAttribute).Name)));
System\ServiceModel\Description\DurableServiceAttribute.cs (4)
85typeof(PersistenceProvider).Name, 86typeof(DurableServiceAttribute).Name))); 95typeof(PersistenceProvider).Name, 96typeof(DurableServiceAttribute).Name)));
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (1)
150typeof(DurableInstance).Name)));
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (1)
98typeof(DurableInstance).Name)));
System\ServiceModel\Dispatcher\DurableOperationContext.cs (5)
71typeof(DurableOperationContext).Name))); 82typeof(DurableOperationContext).Name))); 93typeof(DurableOperationContext).Name))); 105typeof(DurableOperationContext).Name, 106typeof(DurableServiceAttribute).Name)));
System\ServiceModel\Dispatcher\ServiceOperationInvoker.cs (2)
55SR2.GetString(SR2.InvokeCalledWithWrongType, typeof(DurableServiceAttribute).Name))); 100SR2.GetString(SR2.InvokeCalledWithWrongType, typeof(DurableServiceAttribute).Name)));
System\ServiceModel\Dispatcher\WorkflowInstanceContextProvider.cs (4)
64typeof(WorkflowDurableInstance).Name))); 93typeof(WorkflowDurableInstance).Name))); 121typeof(WorkflowDurableInstance).Name))); 142typeof(WorkflowDurableInstance).Name)));
System\Workflow\Activities\ContractType.cs (1)
714this.name = memberInfo.Name;
System\Workflow\Activities\Design\RichListBox.cs (6)
227if (!listItemViewRenderers.ContainsKey(viewType.Name)) 229listItemViewRenderers.Add(viewType.Name, Activator.CreateInstance(viewType) as ListItemViewControl); 231ListItemViewControl listItemRenderer = listItemViewRenderers[viewType.Name]; 243if (!listItemBitmapCache.ContainsKey(viewType.Name)) 245listItemBitmapCache.Add(viewType.Name, new Bitmap(listItemRenderer.Size.Width, listItemRenderer.Size.Height)); 248Bitmap rendererBitmap = listItemBitmapCache[viewType.Name];
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
127return type.Name;
System\Workflow\Activities\OperationInfo.cs (1)
293string.Compare(methodInfo.Name, this.Name, StringComparison.Ordinal) == 0)
System\Workflow\Activities\ReceiveActivityValidator.cs (1)
32SR2.GetString(SR2.General_MissingService, typeof(ITypeProvider).Name)));
System\Workflow\Activities\SendActivity.cs (1)
542object retVal = operation.ReflectedType.InvokeMember(operation.Name,
System\Workflow\Activities\SendActivityValidator.cs (1)
32SR2.GetString(SR2.General_MissingService, typeof(ITypeProvider).Name)));
System\Workflow\Activities\ServiceOperationHelpers.cs (1)
24string operationName = methodInfo.Name;
System\Workflow\Activities\TypedOperationInfo.cs (1)
317string.Compare(currentMethodInfo.Name, this.Name, StringComparison.Ordinal) == 0)
System\Workflow\Activities\ValidationHelper.cs (11)
296methodInfo.Name, 297((MethodInfo) notImplementedServiceOperations[currentContractType][operationName]).Name, 330methodInfo.Name, 331((MethodInfo) notImplementedServiceOperations[currentContractType][operationName]).Name, 348methodInfo.Name, 349((MethodInfo) implementedServiceOperations[currentContractType][operationName]).Name, 598new InvalidOperationException(SR2.GetString(SR2.General_MissingService, typeof(ITypeProvider).Name))); 1023validationErrors.Add(new ValidationError(SR2.GetString(SR2.Error_OperationNotInContract, methodInfo.Name, contractType.FullName), WorkflowServicesErrorNumbers.Error_OperationNotInContract, false, "ServiceOperationInfo")); 1030validationErrors.Add(new ValidationError(SR2.GetString(SR2.Error_OperationContractAttributeMissing, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationContractAttributeMissing, false, "ServiceOperationInfo")); 1054validationErrors.Add(new ValidationError(SR2.GetString(SR2.Error_Validation_OperationIsOneWay, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationIsOneWay, false, "CanCreateInstance")); 1058validationErrors.Add(new ValidationError(SR2.GetString(SR2.Error_OperationNotInitiating, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationNotInitiating, false, "CanCreateInstance"));
System\Workflow\Activities\WorkflowServiceAttributesDynamicPropertyValidator.cs (1)
40new InvalidOperationException(SR2.GetString(SR2.Error_ContextStackItemMissing, typeof(Activity).Name)));
System\Workflow\Runtime\CompiledWorkflowDefinitionContext.cs (1)
45return NamingHelper.XmlName(this.workflowType.Name);
System.Xml (100)
System\Xml\Core\XmlReaderSettings.cs (1)
491throw new XmlException(Res.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
System\Xml\Core\XmlWriterSettings.cs (1)
666throw new XmlException(Res.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
System\Xml\Schema\XmlValueConverter.cs (8)
543return new InvalidCastException(Res.GetString(Res.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name)); 545return new InvalidCastException(Res.GetString(Res.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name)); 2617throw new InvalidCastException(Res.GetString(Res.XmlConvert_TypeToString, XmlTypeName, sourceType.Name)); 2620throw new InvalidCastException(Res.GetString(Res.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name)); 3301return new InvalidCastException(Res.GetString(Res.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name)); 3303return new InvalidCastException(Res.GetString(Res.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
System\Xml\Serialization\CodeExporter.cs (1)
118if (attribute.Name == type.FullName || attribute.Name == type.Name) {
System\Xml\Serialization\CodeGenerator.cs (2)
64return type.Name == "Nullable`1"; 701string propertyName = propertyInfo.Name;
System\Xml\Serialization\CodeIdentifier.cs (1)
165string name = t.Name;
System\Xml\Serialization\Compilation.cs (3)
360suffix = CodeIdentifier.MakeValid(types[0].Name); 464suffix = CodeIdentifier.MakeValid(types[0].Name); 490readerCodeGen.CreatedTypes.Add(writerType.Name, writerType);
System\Xml\Serialization\ImportContext.cs (2)
132string key = item.GetType().Name + ":" + qname.ToString(); 148Warnings.Add(Res.GetString(Res.XmlMismatchSchemaObjects, item.GetType().Name, qname.Name, qname.Namespace));
System\Xml\Serialization\Mappings.cs (7)
1071throw new InvalidOperationException(Res.GetString(Res.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 1144throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaEmptyTypeName, type.FullName, getSchemaMethod.Name)); 1148throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaMethodReturnType, type.Name, getSchemaMethod.Name, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName)); 1170throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaInclude, xsiType.Namespace, getSchemaMethod.DeclaringType.FullName, getSchemaMethod.Name)); 1178throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaTypeMissing, getSchemaMethod.DeclaringType.FullName, getSchemaMethod.Name, xsiType.Name, xsiType.Namespace));
System\Xml\Serialization\Models.cs (8)
170throw new InvalidOperationException(Res.GetString(Res.XmlSerializerUnsupportedMember, member.DeclaringType.FullName + "." + member.Name, type.FullName), typeDesc.Exception); 245this.name = memberInfo.Name; 249this.checkShouldPersistMethodInfo = memberInfo.DeclaringType.GetMethod("ShouldSerialize" + memberInfo.Name, new Type[0]); 252FieldInfo specifiedField = memberInfo.DeclaringType.GetField(memberInfo.Name + "Specified"); 255throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName)); 261PropertyInfo specifiedProperty = memberInfo.DeclaringType.GetProperty(memberInfo.Name + "Specified"); 268throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSpecifiedType, specifiedProperty.Name, specifiedProperty.PropertyType.FullName, typeof(bool).FullName)); 330get { return fieldInfo.Name; }
System\Xml\Serialization\SchemaObjectWriter.cs (2)
35return String.Compare(f1.GetType().Name + ":" + f1.Value, f2.GetType().Name + ":" + f2.Value, StringComparison.Ordinal);
System\Xml\Serialization\SoapReflectionImporter.cs (1)
174SoapAttributes attrs = attributeOverrides[memberInfo.DeclaringType, memberInfo.Name];
System\Xml\Serialization\SoapSchemaExporter.cs (1)
336throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
System\Xml\Serialization\SoapSchemaImporter.cs (1)
566throw new InvalidOperationException(Res.GetString(Res.XmlInvalidEnumContent, dataType.Content.GetType().Name, identifier));
System\Xml\Serialization\TypeExtensions.cs (1)
35if (method.Name == ImplicitCastOperatorName &&
System\Xml\Serialization\Types.cs (10)
118: this(type.Name, type.FullName, dataType, TypeKind.Primitive, (TypeDesc)null, flags, formatterName) { 744arrayElementType = GetCollectionElementType(type, memberInfo == null ? null : memberInfo.DeclaringType.FullName + "." + memberInfo.Name); 802exception = new NotSupportedException(Res.GetString(Res.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName)); 888string name = t.Name; 909return t.Name; 967throw new InvalidOperationException(Res.GetString(Res.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name)); 1060if (info.Name == memberInfoToBeReplaced.Name) 1072if (info.Name == memberInfoToBeReplaced.Name)
System\Xml\Serialization\XmlReflectionImporter.cs (14)
229XmlAttributes attrs = attributeOverrides[memberInfo.DeclaringType, memberInfo.Name]; 404throw new InvalidOperationException(Res.GetString(Res.XmlSerializableAttributes, model.TypeDesc.FullName, typeof(XmlSchemaProviderAttribute).Name)); 436throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaMethodMissing, provider.MethodName, typeof(XmlSchemaSet).Name, type.FullName)); 439throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName)); 513throw new InvalidOperationException(Res.GetString(Res.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 527throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema")); 1366throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name)); 1624throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, typeof(IXmlSerializable).Name)); 1812throw new InvalidOperationException(Res.GetString(Res.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 1821throw new InvalidOperationException(Res.GetString(Res.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 1833throw new InvalidOperationException(Res.GetString(Res.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i].ElementName, typeof(XmlElementAttribute).Name, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 1965typeName = type.Name;
System\Xml\Serialization\XmlSchemaExporter.cs (2)
618throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 952throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
System\Xml\Serialization\XmlSchemaImporter.cs (2)
368throw new InvalidOperationException(Res.GetString(Res.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
System\Xml\Serialization\XmlSchemas.cs (3)
418throw new InvalidOperationException(Res.GetString(Res.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation)); 550string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name; 557item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType().Name, null, details);
System\Xml\Serialization\XmlSerializationILGen.cs (4)
290CreatedTypes.Add(baseSerializerType.Name, baseSerializerType); 386CreatedTypes.Add(typedSerializerType.Name, typedSerializerType); 388return typedSerializerType.Name; 553CreatedTypes.Add(serializerContractType.Name, serializerContractType);
System\Xml\Serialization\XmlSerializationReader.cs (2)
1280return new InvalidOperationException(Res.GetString(Res.XmlUnknownConstant, value, enumType.Name)); 1306return new InvalidOperationException(Res.GetString(Res.XmlSerializableMissingClrType, name, ns, typeof(XmlIncludeAttribute).Name, clrType));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
262CreatedTypes.Add(readerType.Name, readerType);
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3452WriteMemberInfo(type, typeFullName, typeVariable, enumFields[i].Name); 3553WriteQuotedCSharpString(defaultIndexer.Name);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2378Debug.Assert(initValue.MemberInfo.Name == initValue.Arg.Substring(3));
System\Xml\XPath\Internal\BaseAxisQuery.cs (1)
122w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\BooleanExpr.cs (1)
57w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
82w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
71w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
52w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\FilterQuery.cs (1)
157w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\FunctionQuery.cs (1)
102w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\LogicalExpr.cs (1)
375w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\MergeFilterQuery.cs (1)
67w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NodeFunctions.cs (1)
97w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NumberFunctions.cs (1)
107w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NumericExpr.cs (1)
72w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\OperandQuery.cs (1)
30w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\Query.cs (1)
231w.WriteElementString(this.GetType().Name, string.Empty);
System\Xml\XPath\Internal\SortQuery.cs (1)
104w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\StringFunctions.cs (1)
228w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\UnionExpr.cs (1)
139w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\VariableQuery.cs (1)
62w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
59w.WriteStartElement(this.GetType().Name);
UIAutomationClient (4)
System\Windows\Automation\ItemContainerPattern.cs (1)
152throw new ArgumentException(SR.Get(SRID.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\PropertyCondition.cs (1)
152throw new ArgumentException(SR.Get(SRID.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\Text\TextRange.cs (2)
200throw new ArgumentException(SR.Get(SRID.TextAttributeValueWrongType, attribute, ai.Type.Name, value.GetType().Name), "value");
WindowsBase (19)
Base\MS\Internal\AvTrace.cs (1)
460return value.GetType().Name;
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (2)
60: base(string.Concat(dp.OwnerType.Name, ".", dp.Name), null) 645throw new InvalidOperationException(SR.Get(SRID.SpecialMethodMustBePublic, methodInfo.Name));
Base\MS\Internal\Interop\ErrorCodes.cs (2)
313return publicStaticField.Name; 328return "HRESULT_FROM_WIN32(" + publicStaticField.Name + ")";
Base\System\Windows\DependencyObjectType.cs (2)
52throw new ArgumentException(SR.Get(SRID.DTypeNotSupportForSystemType, systemType.Name)); 140public string Name { get { return SystemType.Name; } }
Base\System\Windows\DependencyProperty.cs (6)
272throw new ArgumentException(SR.Get(SRID.PropertyAlreadyRegistered, name, ownerType.Name)); 359throw new ArgumentException(SR.Get(SRID.DefaultValueAutoAssignFailed, name, ownerType.Name)); 485throw new ArgumentException(SR.Get(SRID.TypeMustBeDependencyObjectDerived, forType.Name)); 594throw new ArgumentException(SR.Get(SRID.TypeMetadataAlreadyRegistered, forType.Name)); 797throw new ArgumentException(SR.Get(SRID.PropertyAlreadyRegistered, Name, ownerType.Name)); 1169throw new InvalidOperationException(SR.Get(SRID.TooManyDependencyProperties, ownerType.Name + "." + name));
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
94"Get" + methodInfo.Name.Substring("Set".Length),
Base\System\Windows\Threading\DispatcherOperation.cs (1)
310return _method.Method.DeclaringType + "." + _method.Method.Name;
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
612throw new ObjectDisposedException(this.GetType().Name);
Shared\System\Windows\Markup\ReflectionHelper.cs (3)
316throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsLow, attrType.Name)); 329throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsLow, attrType.Name)); 334throw new ArgumentException(SR.Get(SRID.ParserAttributeArgsHigh, attrType.Name));
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\WrappingXamlSchemaContext.cs (1)
58XamlType rolType = base.GetXamlType(clrNamespace, xamlType.UnderlyingType.Name);
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (1)
413this.definedType != null && declaringType.Name == this.definedType.Name)