Base:
method
ToString
System.Object.ToString()
Implemented interface member:
method
ToString
System.Runtime.InteropServices._Type.ToString()
10 overrides of ToString
mscorlib (5)
system\reflection\emit\generictypeparameterbuilder.cs (1)
38public override String ToString()
system\reflection\emit\symboltype.cs (1)
404public override String ToString()
system\reflection\emit\typebuilder.cs (1)
1025public override String ToString()
system\reflection\emit\typebuilderinstantiation.cs (1)
65public override String ToString()
system\rttype.cs (1)
5001public override String ToString()
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1113public override string ToString() { return _baseReflectionType.ToString(); }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1113public override string ToString() { return _baseReflectionType.ToString(); }
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
567public override string ToString()
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
415public override string ToString()
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
433public override string ToString()
588 references to ToString
ComSvcConfig (1)
ComplusTypeValidator.cs (1)
315typeMismatchDetails = type.ToString() + " ";
mscorlib (58)
system\enum.cs (6)
635throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), enumType.ToString())); 642throw new ArgumentException(Environment.GetResourceString("Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString())); 838targetType.ToString(), thisType.ToString()));
system\exception.cs (1)
241_className = GetType().ToString();
system\internal.cs (16)
228WinRT_IEnumerable<string>(null, null, null); typeof(IIterable<string>).ToString(); typeof(IIterator<string>).ToString(); 229WinRT_IEnumerable<object>(null, null, null); typeof(IIterable<object>).ToString(); typeof(IIterator<object>).ToString(); 232WinRT_IList<string>(null, null, null, null); typeof(IVector<string>).ToString(); 233WinRT_IList<object>(null, null, null, null); typeof(IVector<object>).ToString(); 236WinRT_IReadOnlyList<string>(null, null, null); typeof(IVectorView<string>).ToString(); 237WinRT_IReadOnlyList<object>(null, null, null); typeof(IVectorView<object>).ToString(); 239WinRT_IDictionary<string, int>(null, null, null, null); typeof(IMap<string, int>).ToString(); 240WinRT_IDictionary<string, string>(null, null, null, null); typeof(IMap<string, string>).ToString(); 241WinRT_IDictionary<string, object>(null, null, null, null); typeof(IMap<string, object>).ToString(); 242WinRT_IDictionary<object, object>(null, null, null, null); typeof(IMap<object, object>).ToString(); 244WinRT_IReadOnlyDictionary<string, int>(null, null, null, null); typeof(IMapView<string, int>).ToString(); 245WinRT_IReadOnlyDictionary<string, string>(null, null, null, null); typeof(IMapView<string, string>).ToString(); 246WinRT_IReadOnlyDictionary<string, object>(null, null, null, null); typeof(IMapView<string, object>).ToString(); 247WinRT_IReadOnlyDictionary<object, object>(null, null, null, null); typeof(IMapView<object, object>).ToString();
system\object.cs (1)
54return GetType().ToString();
system\reflection\emit\customattributebuilder.cs (2)
509throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForCAB", ot.ToString())); 519typename = value.GetType().ToString();
system\reflection\emit\typebuilder.cs (1)
510throw new ArgumentException(Environment.GetResourceString("Argument_ConstantNotSupported", type.ToString()));
system\reflection\fieldinfo.cs (1)
320return FieldType.ToString() + " " + Name;
system\reflection\methodbody.cs (1)
155string toString = LocalType.ToString() + " (" + LocalIndex + ")";
system\rttype.cs (2)
2263i.ToString(CultureInfo.CurrentCulture), genericArgument.ToString(), definition.ToString(), genericParameter.ToString()), e);
system\runtime\interopservices\attributes.cs (1)
158_importClassName = importClass.ToString();
system\runtime\interopservices\comexception.cs (1)
70String _className = GetType().ToString();
system\runtime\interopservices\externalexception.cs (1)
61String _className = GetType().ToString();
system\runtime\remoting\message.cs (2)
625valueName = typeof(MarshalByRefObject).ToString(); 797valueName = typeof(MarshalByRefObject).ToString();
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
485SerTrace.Log( "Converter", "FromString Exit "+((var == null)?"null":var+" var type "+((var==null)?"<null>":var.GetType().ToString())));
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
718SerTrace.Log( this, "WriteValue Entry ",((Enum)code).ToString()," " , ((value==null)?"<null>":value.GetType().ToString()) , " ",value);
system\runtime\serialization\formatterservices.cs (3)
193throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString())); 239throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString())); 253throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
system\runtime\serialization\objectmanager.cs (1)
1024throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", member.GetType().ToString()));
system\security\cryptography\utils.cs (1)
587oidValue = CryptoConfig.MapNameToOID(hashAlg.GetType().ToString(), group);
system\stubhelpers.cs (1)
1419throw new ArgumentException(Environment.GetResourceString("Argument_WinRTSystemRuntimeType", managedType.GetType().ToString()));
system\tuple.cs (8)
119throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 209throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 314throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 430throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 557throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 695throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 844throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 1008throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
system\type.cs (5)
1497throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), this.ToString())); 1518throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString())); 1527throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), GetEnumUnderlyingType()));
system\valuetype.cs (1)
95return this.GetType().ToString();
PresentationBuildTasks (1)
Framework\System\Windows\Markup\TemplateXamlParser.cs (1)
859elementType.ToString(),
PresentationFramework (36)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
472throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString()); 478throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString()); 499throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString());
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
85throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "anchor1: type = " + anchor1.GetType().ToString()); 88throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "Anchor2: type = " + anchor2.GetType().ToString());
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
346destinationType.ToString(), 356destinationType.ToString()),
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (1)
417throw new ObjectDisposedException(typeof(DocumentPageView).ToString());
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (1)
392string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (1)
334string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
890throw new ObjectDisposedException(typeof(DocumentPageView).ToString());
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
378string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
299string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12109string name = t.ToString();
src\Framework\System\Windows\Documents\TableCell.cs (1)
109throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Documents\TableRow.cs (1)
114throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Documents\TableRowGroup.cs (1)
330throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
3435element.GetType().ToString(), holder.PropertyDefinition.Name), e);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (3)
162throw new InvalidOperationException( SR.Get( SRID.MarkupWriter_CannotSerializeNestedPublictype, type.ToString() )); 166throw new InvalidOperationException( SR.Get( SRID.MarkupWriter_CannotSerializeNonPublictype, type.ToString() )); 170throw new InvalidOperationException( SR.Get( SRID.MarkupWriter_CannotSerializeGenerictype, type.ToString() ));
src\Framework\System\Windows\Markup\XamlParseException.cs (1)
361simpleObjectId = objectType.ToString();
src\Framework\System\Windows\Media\Animation\Storyboard.cs (9)
278SR.Get(SRID.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString())); 320SR.Get(SRID.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString())); 329SR.Get(SRID.Storyboard_NameNotFound, targetName, fe.GetType().ToString())); 338SR.Get(SRID.Storyboard_NameNotFound, targetName, fce.GetType().ToString())); 446throw new InvalidOperationException(SR.Get(SRID.Storyboard_NoTarget, currentTimeline.GetType().ToString() )); 454throw new InvalidOperationException(SR.Get(SRID.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() )); 576"Internal error - clockMappings table contains an unexpected object " + ((mappedObject == null ) ? "" : mappedObject.GetType().ToString()) ); 725throw new InvalidOperationException(SR.Get(SRID.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() )); 946throw new InvalidOperationException(SR.Get(SRID.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
1615_bp != null ? _bp.GetType().ToString() : "null"));
src\Framework\System\Windows\Standard\Verify.cs (1)
308throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "The parameter must implement interface {0}.", interfaceType.ToString()), parameterName);
src\Framework\System\Windows\Style.cs (1)
689"Unsupported SetterBase subclass in style triggers ({0})", setterBase.GetType().ToString());
src\Framework\System\Windows\StyleHelper.cs (2)
4354candidateTrigger.GetType().ToString() + " is not expected. Where did this object come from?"); 5285candidateTrigger.GetType().ToString() + " is not expected. Where did this object come from?");
SMSvcHost (1)
System\ServiceModel\Activation\Diagnostics\ListenerTraceUtility.cs (1)
89return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System (8)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
1261throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.Value.GetType().ToString()));
compmod\system\codedom\compiler\CodeGenerator.cs (1)
1538throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.Value.GetType().ToString()));
compmod\system\codedom\compiler\CompilerInfo.cs (1)
99throw new InvalidOperationException(SR.GetString(SR.Provider_does_not_support_options, CodeDomProviderType.ToString()));
compmod\system\configuration\appsettingsreader.cs (1)
71throw new InvalidOperationException(SR.GetString(SR.AppSettingsReaderCantParse, displayString, key, type.ToString()));
net\System\Net\HttpWebRequest.cs (1)
2374GlobalLog.Assert(oldResult == null, "HttpWebRequest#{0}::NeedEndSubmitRequest()|Duplicate call. typeof(oldResult):", ValidationHelper.HashString(this), oldResult != null ? oldResult.GetType().ToString() : "null");
sys\system\configuration\SettingsPropertyValue.cs (2)
209throw new ArgumentException(SR.GetString(SR.Unable_to_convert_type_from_string, type.ToString()), "type"); 250throw new ArgumentException(SR.GetString(SR.Unable_to_convert_type_to_string, type.ToString()), "type");
sys\system\configuration\SettingsProviderCollection.cs (1)
25throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(SettingsProvider).ToString()), "provider");
System.Activities (47)
System\Activities\ActivityInstance.cs (2)
1250TD.InArgumentBound(argument.Name, this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, argumentValue); 1295TD.ActivityCompleted(this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, this.State.GetStateName());
System\Activities\AsyncCodeActivity.cs (3)
248TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope)); 256TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope)); 264TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
System\Activities\Debugger\LocalsItemDescription.cs (1)
40return this.Name + ":" + this.Type.ToString();
System\Activities\DynamicActivityProperty.cs (1)
60return "Property: " + Type.ToString() + " " + Name;
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (1)
126throw FxTrace.Exception.AsError(new ValidationException(SR.RequiredExtensionTypeNotFound(requiredType.ToString())));
System\Activities\Runtime\ActivityExecutor.cs (16)
1272TD.RuntimeTransactionSet(transactionOwner.Activity.GetType().ToString(), transactionOwner.Activity.DisplayName, transactionOwner.Id, isolationScope.Activity.GetType().ToString(), isolationScope.Activity.DisplayName, isolationScope.Id); 1301TD.RuntimeTransactionCompletionRequested(callbackOwner.Activity.GetType().ToString(), callbackOwner.Activity.DisplayName, callbackOwner.Id); 1340TD.RuntimeTransactionCompletionRequested(instance.Activity.GetType().ToString(), instance.Activity.DisplayName, instance.Id); 2848TD.ActivityScheduled(parent.Activity.GetType().ToString(), parent.Activity.DisplayName, parent.Id, activity.GetType().ToString(), activity.DisplayName, scheduledInstanceId); 2852TD.ActivityScheduled(string.Empty, string.Empty, string.Empty, activity.GetType().ToString(), activity.DisplayName, scheduledInstanceId); 3354TD.CompleteCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3362TD.ScheduleCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3370TD.StartCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3448TD.ScheduleExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3456TD.StartExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3464TD.CompleteExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4317TD.CompleteTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4325TD.ScheduleTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4333TD.StartTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id);
System\Activities\Runtime\BookmarkManager.cs (1)
177TD.CreateBookmark(owningInstance.Activity.GetType().ToString(), owningInstance.Activity.DisplayName, owningInstance.Id, ActivityUtilities.GetTraceString(bookmark), ActivityUtilities.GetTraceString((BookmarkScope)bookmark.Scope));
System\Activities\Runtime\BookmarkWorkItem.cs (3)
63TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope)); 71TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope)); 79TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
System\Activities\Runtime\CompletionCallbackWrapper.cs (6)
165TD.CompleteCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id); 173TD.ScheduleCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id); 181TD.StartCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id);
System\Activities\Runtime\FaultCallbackWrapper.cs (6)
95TD.CompleteFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException); 103TD.ScheduleFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException); 111TD.StartFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException);
System\Activities\Runtime\WorkItem.cs (3)
238TD.ScheduleRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 248TD.StartRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 258TD.CompleteRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id);
System\Activities\Statements\TryCatch.cs (1)
249TD.TryCatchExceptionFromTry(this.DisplayName, propagatedException.GetType().ToString());
System\Activities\Tracking\TrackingProvider.cs (2)
185TD.TrackingRecordRaised(preparedRecord.ToString(), participant.GetType().ToString()); 398TD.TrackingRecordRaised(preparedRecord.ToString(), participant.GetType().ToString());
System\Activities\WorkflowApplication.cs (1)
5284TD.WorkflowApplicationUnhandledException(instance.Id.ToString(), source.GetType().ToString(), source.DisplayName, action.ToString(), exception);
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
94throw new InvalidOperationException(e.Message + Environment.NewLine + Environment.NewLine + e.InnerException.GetType().ToString() + Environment.NewLine + e.InnerException.Message, e);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
275suspensionExceptionName = ((Exception)propertyValue.Value).GetType().ToString(); 559throw FxTrace.Exception.AsError(new InstancePersistenceException(SR.CannotPromoteAsSqlVariant(propertyValue.Value.GetType().ToString(), name.ToString())));
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (2)
312return string.Compare(x.GetType().ToString(), y.GetType().ToString(), StringComparison.CurrentCulture);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1113public override string ToString() { return _baseReflectionType.ToString(); }
System.ComponentModel.DataAnnotations (1)
DataAnnotations\CustomValidationAttribute.cs (1)
139(value != null ? value.GetType().ToString() : "null"), this._valuesType, this._validatorType, this._method));
System.Configuration (1)
System\Configuration\ProtectedConfigurationProviderCollection.cs (1)
28throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(ProtectedConfigurationProvider).ToString()), "provider");
System.Core (20)
Microsoft\Scripting\Ast\DebugViewWriter.cs (18)
237return "Convert " + convert.Type.ToString(); 276Out(variable.Type.ToString()); 436node.Type.ToString() 511node.Type.ToString(), 553Out(member.DeclaringType.ToString() + "." + member.Name); 777Out(node.Method.DeclaringType.ToString()); 790Out(".NewArray " + node.Type.GetElementType().ToString()); 794Out(".NewArray " + node.Type.ToString(), Flow.Space); 801Out(".New " + node.Type.ToString()); 858Out(node.TypeOperand.ToString()); 866Out("(" + node.Type.ToString() + ")"); 869Out("#(" + node.Type.ToString() + ")"); 928Out(node.Type.ToString()); 952Out(String.Format(CultureInfo.CurrentCulture, "<{0}>", node.Type.ToString())); 964Out(".Default(" + node.Type.ToString() + ")"); 1035Out(Flow.NewLine, "} .Catch (" + node.Test.ToString()); 1085Out(String.Format(CultureInfo.CurrentCulture, ".Extension<{0}>", node.GetType().ToString())); 1131lambda.Type.ToString())
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (2)
391} else if (sValue == node.Value.GetType().ToString()) { 545Out("new " + node.Type.ToString());
System.Data (23)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (2)
312return string.Compare(x.GetType().ToString(), y.GetType().ToString(), StringComparison.CurrentCulture);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1113public override string ToString() { return _baseReflectionType.ToString(); }
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
758throw SQL.UnsupportedColumnTypeForSqlProvider(colName, colType.ToString()); 927throw SQL.UnsupportedColumnTypeForSqlProvider(colName, colType.ToString());
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
791(null!=Type) ? Type.ToString():"<null>",
fx\src\data\System\Data\ColumnTypeConverter.cs (2)
98if (types[i].ToString().Equals(value)) 124if (types[i].ToString().Equals(value))
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
913return Argument(Res.GetString(Res.SQL_WrongType, got.ToString(), expected.ToString()));
fx\src\data\System\Data\Filter\FilterException.cs (8)
170return _Eval(Res.GetString(Res.Expr_DatatypeConvertion, type1.ToString(), type2.ToString())); 174return _Eval(Res.GetString(Res.Expr_DatavalueConvertion, value.ToString(), type.ToString()), innerException); 210return _Eval(Res.GetString(Res.Expr_ArgumentType, function, arg.ToString(CultureInfo.InvariantCulture), type.ToString())); 218return _Eval(Res.GetString(Res.Expr_TypeMismatchInBinop, Operators.ToString(op), type1.ToString(), type2.ToString())); 222return _Eval(Res.GetString(Res.Expr_AmbiguousBinop, Operators.ToString(op), type1.ToString(), type2.ToString()));
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
350_command.ObjectID, i, metaData[i].GetType().ToString(), metaData[i].TraceString()); 363_command.ObjectID, ordinal, metaData.GetType().ToString(), metaData.TraceString());
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
1155reader.ObjectID, i, md[i].GetType().ToString(), md[i].TraceString());
fx\src\data\System\Data\SqlClient\SqlError.cs (1)
60return typeof(SqlError).ToString() + ": " + this.message; // since this is sealed so we can change GetType to typeof
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
11460return instance.GetType().ToString();
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
228throw DataSetUtil.InvalidCast(Strings.DataSetLinq_NonNullableCast(typeof(T).ToString()));
System.Data.Entity (5)
System\Data\Common\DbProviderServices.cs (3)
308connection.GetType().ToString())); 327factory.GetType().ToString())); 335factory.GetType().ToString()));
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (1)
65base.Append(o.GetType().ToString());
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (1)
477Debug.Fail("unexpected type of nested object result: " + result.GetType().ToString());
System.Data.Entity.Design (2)
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
50factory.GetType().ToString())); 59factory.GetType().ToString()));
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
453return runtimeOnlyType.ToString();
System.Data.Services (1)
System\Data\Services\Error.cs (1)
203throw Trace(new ObjectDisposedException(type.ToString()));
System.Data.Services.Client (5)
System\Data\Services\Client\ClientConvert.cs (2)
202throw Error.InvalidOperation(Strings.Deserialize_Current(propertyType.ToString(), propertyValue), ex); 207throw Error.InvalidOperation(Strings.Deserialize_Current(propertyType.ToString(), propertyValue), ex);
System\Data\Services\Client\ClientType.cs (2)
417clientType = new ClientType(type, type.ToString(), skipSettableCheck); // ToString expands generic type name where as FullName does not 1048throw Error.InvalidOperation(Strings.ClientType_MissingProperty(value.GetType().ToString(), propertyName));
System\Data\Services\Client\Error.cs (1)
67throw Trace(new ObjectDisposedException(type.ToString()));
System.Data.SqlXml (8)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
183throw new XslTransformException(Res.XmlIl_CantResolveEntity, uriRelative, dataSource.GetType().ToString());
System\Xml\Xsl\Runtime\XsltConvert.cs (2)
83Debug.Assert(itemType == BooleanType, "Unexpected type of atomic sequence " + itemType.ToString()); 121Debug.Assert(itemType == BooleanType, "Unexpected type of atomic sequence " + itemType.ToString());
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
254Debug.Fail("Unexpected type: " + o.GetType().ToString()); 282Debug.Assert(itemType == XsltConvert.BooleanType, "Unexpected type of atomic value " + itemType.ToString());
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
267Debug.Assert(itemType == XsltConvert.BooleanType, "Unexpected type of atomic value " + itemType.ToString());
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
1123Debug.Fail("Don't know how to serialize " + type.GetType().ToString());
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
194throw new XslLoadException(Res.Xslt_CannotLoadStylesheet, uri.ToString(), input == null ? "null" : input.GetType().ToString());
System.IdentityModel (22)
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
214writer.WriteAttributeString("Type", _securityToken.GetType().ToString()); 231writer.WriteElementString("Warning", SR.GetString(SR.TraceUnableToWriteToken, _securityToken.GetType().ToString()));
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlTokenAuthenticatorCanOnlyProcessSamlTokens, token.GetType().ToString())));
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (3)
45tokenType = tokenType ?? token.GetType().ToString(); 56tokenType = tokenType ?? token.GetType().ToString(); 66tokenType = tokenType ?? token.GetType().ToString();
System\IdentityModel\SspiWrapper.cs (2)
520throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("handleType", SR.GetString(SR.ValueMustBeOf2Types, typeof(SafeFreeContextBuffer).ToString(), typeof(SafeFreeCertContext).ToString())));
System\IdentityModel\Tokens\EmptySecurityKeyIdentifierClause.cs (1)
31: base( typeof( EmptySecurityKeyIdentifierClause ).ToString() )
System\IdentityModel\Tokens\Saml2SecurityKeyIdentifierClause.cs (1)
25: base(typeof(Saml2SecurityKeyIdentifierClause).ToString())
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1647throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1064, token.GetType().ToString())); 1692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenReplayDetectedException(SR.GetString(SR.ID1066, typeof(Saml2SecurityToken).ToString(), samlToken.Assertion.Id.Value, issuer)));
System\IdentityModel\Tokens\SamlSecurityKeyIdentifierClause.cs (1)
24: base(typeof(SamlSecurityKeyIdentifierClause).ToString())
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (4)
783throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1067, token.GetType().ToString())); 833new SecurityTokenReplayDetectedException(SR.GetString(SR.ID1062, typeof(SamlSecurityToken).ToString(), samlToken.Assertion.AssertionId, ""))); 838new SecurityTokenReplayDetectedException(SR.GetString(SR.ID1062, typeof(SamlSecurityToken).ToString(), samlToken.Assertion.AssertionId, samlToken.Assertion.Issuer))); 967throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1033, token.GetType().ToString()));
System\IdentityModel\Tokens\SecurityTokenHandler.cs (2)
294TD.TokenValidationSuccess(this.EventTraceActivity, token.GetType().ToString(), token.Id); 302TD.TokenValidationFailure(this.EventTraceActivity, token.GetType().ToString(), token.Id, errorMessage);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (3)
255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, tokenDescriptor.Token.GetType().ToString()))); 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4292, token.GetType().ToString(), this.GetType().ToString())));
System.Management (1)
managementbaseobject.cs (1)
280info.FullTypeName = typeof(ManagementBaseObject).ToString();
System.Runtime.Remoting (1)
channels\core\corechannel.cs (1)
159"CoreChannel.UpdateCachedIPAddresses caught exception '{0}'; \r\nMessage: {1}", exception.GetType().ToString(), exception.Message));
System.Runtime.Serialization (6)
System\Runtime\Serialization\CodeGenerator.cs (5)
637EmitSourceInstruction("Callvirt " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 643EmitSourceInstruction("Static Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 649EmitSourceInstruction("Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 657EmitSourceInstruction("Call " + ctor.ToString() + " on type " + ctor.DeclaringType.ToString()); 664EmitSourceInstruction("Newobj " + constructorInfo.ToString() + " on type " + constructorInfo.DeclaringType.ToString());
System\Xml\XmlC14NWriter.cs (1)
689throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System.Security (5)
system\security\cryptography\pkcs\pkcsmisc.cs (5)
161throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 169throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 272throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 280throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 288throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
System.ServiceModel (152)
System\ServiceModel\Administration\ContractInstanceProvider.cs (2)
97parameterTypes[i] = parameterInfo[i].ParameterType.ToString(); 150instance.SetProperty(AdministrationStrings.TargetContract, specificBehavior.TargetContract.ToString());
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
571extendedProtectionPolicy.SetProperty(AdministrationStrings.CustomChannelBinding, policy.CustomChannelBinding.GetType().ToString());
System\ServiceModel\Administration\ServiceInstanceProvider.cs (1)
360instance.SetProperty(AdministrationStrings.Type, channel.GetType().ToString());
System\ServiceModel\Administration\WbemProvider.cs (1)
986val.GetType().ToString());
System\ServiceModel\Channels\BindingContext.cs (1)
169string typeString = bindingElement.GetType().ToString();
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ChannelFactoryCannotBeUsedToCreateChannels, this.GetType().ToString())));
System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
90channel.GetType().ToString(), state.ToString()); 95channel.GetType().ToString(), state.ToString()); 118channel.GetType().ToString(), state.ToString()); 130channel.GetType().ToString(), state.ToString());
System\ServiceModel\Channels\ChannelRequirements.cs (2)
278string typeString = channelType.ToString(); 322string typeString = channelType.ToString();
System\ServiceModel\Channels\CommunicationObject.cs (15)
140TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectAbortFailed, SR.GetString(SR.TraceCodeCommunicationObjectAbortFailed, this.GetCommunicationObjectType().ToString()), this); 203TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectCloseFailed, SR.GetString(SR.TraceCodeCommunicationObjectCloseFailed, this.GetCommunicationObjectType().ToString()), this); 255TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectOpenFailed, SR.GetString(SR.TraceCodeCommunicationObjectOpenFailed, this.GetCommunicationObjectType().ToString()), this); 328TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectCloseFailed, SR.GetString(SR.TraceCodeCommunicationObjectCloseFailed, this.GetCommunicationObjectType().ToString()), this); 349return new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeUsed, this.GetCommunicationObjectType().ToString(), this.state.ToString())); 354return new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModifiedInState, this.GetCommunicationObjectType().ToString(), this.state.ToString())); 359return new InvalidOperationException(SR.GetString(SR.CommunicationObjectBaseClassMethodNotCalled, this.GetCommunicationObjectType().ToString(), method)); 374return new ObjectDisposedException(this.GetCommunicationObjectType().ToString()); 385string message = SR.GetString(SR.CommunicationObjectFaulted1, this.GetCommunicationObjectType().ToString()); 396return new CommunicationObjectAbortedException(SR.GetString(SR.CommunicationObjectAborted1, this.GetCommunicationObjectType().ToString())); 549return new CommunicationException(SR.GetString(SR.CommunicationObjectCloseInterrupted1, this.GetCommunicationObjectType().ToString())); 605TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectOpenFailed, SR.GetString(SR.TraceCodeCommunicationObjectOpenFailed, this.GetCommunicationObjectType().ToString()), this); 691TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectFaulted, SR.GetString(SR.TraceCodeCommunicationObjectFaulted, this.GetCommunicationObjectType().ToString()), this); 1134SR.GetString(SR.TraceCodeCommunicationObjectOpenFailed, this.communicationObject.GetCommunicationObjectType().ToString()), 1208SR.GetString(SR.TraceCodeCommunicationObjectCloseFailed, this.communicationObject.GetCommunicationObjectType().ToString()),
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\ContextBindingElement.cs (2)
131new InvalidOperationException(SR.GetString(SR.ContextBindingElementCannotProvideChannelFactory, typeof(TChannel).ToString()))); 149new InvalidOperationException(SR.GetString(SR.ContextBindingElementCannotProvideChannelListener, typeof(TChannel).ToString())));
System\ServiceModel\Channels\InitialServerConnectionReader.cs (2)
329new StringTraceRecord("Type", upgradeAcceptor.GetType().ToString()), connection, null); 389new StringTraceRecord("Type", upgradeAcceptor.GetType().ToString()), this, null);
System\ServiceModel\Channels\LayeredChannelListener.cs (2)
172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InnerListenerFactoryNotSet, this.GetType().ToString()))); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InnerListenerFactoryNotSet, this.GetType().ToString())));
System\ServiceModel\Channels\LifetimeManager.cs (4)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 377this.Complete(false, new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\Message.cs (1)
517return SR.GetString(SR.MessageBodyToStringError, e.GetType().ToString(), e.Message);
System\ServiceModel\Channels\MessageProperties.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SR.GetString(SR.ObjectDisposed, this.GetType().ToString())));
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (2)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\MsmqBindingMonitor.cs (2)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModified, this.GetType().ToString()))); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModified, this.GetType().ToString())));
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
1447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1653return this.GetType().ToString();
System\ServiceModel\Channels\PeerService.cs (2)
324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(typeof(IPeerNeighbor).ToString())); 339throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(typeof(IPeerNeighbor).ToString()));
System\ServiceModel\Channels\ReceiveContext.cs (15)
111TD.ReceiveContextAbandonWithException(this.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString()); 129TD.ReceiveContextAbandonFailed(this.eventTraceActivity, this.GetType().ToString()); 195TD.ReceiveContextCompleteFailed(this.eventTraceActivity, this.GetType().ToString()); 359new CommunicationException(SR.GetString(SR.ReceiveContextFaulted, this.GetType().ToString()))); 368new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()))); 377new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()))); 386new InvalidOperationException(SR.GetString(SR.ReceiveContextCannotBeUsed, this.GetType().ToString(), this.State.ToString()))); 409return new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()), exception); 452TD.ReceiveContextAbandonWithException(this.ReceiveContext.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString()); 467this.GetType().ToString()); 510TD.ReceiveContextAbandonFailed(thisPtr.ReceiveContext.eventTraceActivity, thisPtr.GetType().ToString()); 568TD.ReceiveContextCompleteFailed(this.ReceiveContext.eventTraceActivity, this.GetType().ToString()); 612TD.ReceiveContextCompleteFailed(thisPtr.ReceiveContext.eventTraceActivity, thisPtr.GetType().ToString());
System\ServiceModel\Channels\ReliableChannelBinder.cs (4)
575SR.CommunicationObjectAborted1, this.GetType().ToString())); 579return new ObjectDisposedException(this.GetType().ToString()); 611SR.CommunicationObjectFaulted1, this.GetType().ToString())); 766this.GetType().ToString(), this.state.ToString()));
System\ServiceModel\Channels\RequestReplyCorrelator.cs (2)
268return typeof(Key).ToString() + ": {" + MessageId + ", " + StateType.ToString() + "}";
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
1833sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 2255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NoTransportTokenAssertionProvided, transportTokenAssertionProvider.GetType().ToString())));
System\ServiceModel\Channels\ServiceChannel.cs (2)
1187string text = SR.GetString(SR.SFxInitializationUINotCalled, example.GetType().ToString()); 1206string text = SR.GetString(SR.SFxInitializationUIDisallowed, example.GetType().ToString());
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
535return this.targetType.ToString();
System\ServiceModel\Channels\SocketConnection.cs (3)
592this.GetType().ToString(), SR.GetString(SR.SocketConnectionDisposed)), TransferOperation.Undefined), ExceptionEventType); 602this.GetType().ToString(), SR.GetString(SR.SocketConnectionDisposed)), TransferOperation.Undefined), ExceptionEventType); 2035throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString(), SR.GetString(SR.SocketListenerDisposed)));
System\ServiceModel\ClientBase.cs (1)
408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxImmutableClientBaseCacheSetting, typeof(TChannel).ToString())));
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (6)
41contractQName, contract.ContractType.ToString()); 340(contractType != null) ? contractType.ToString() : null, (binding != null) ? (binding.GetType()).ToString() : null, schema); 383ComPlusTypedChannelBuilderSchema record = new ComPlusTypedChannelBuilderSchema(contractType.ToString(), 384(binding != null) ? (binding.GetType()).ToString() : null); 395ComPlusChannelCreatedSchema record = new ComPlusChannelCreatedSchema(address, (contractType != null) ? contractType.ToString() : null);
System\ServiceModel\Configuration\BindingElementExtensionElement.cs (2)
42this.BindingElementType.ToString(), 43bindingElement.GetType().ToString()));
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (2)
165SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(X509CertificateValidator).ToString()))); 175SR.GetString(SR.ConfigInvalidSamlSerializerType, this.SamlSerializerType, typeof(SamlSerializer).ToString())));
System\ServiceModel\Configuration\SecureConversationServiceElement.cs (1)
61SR.GetString(SR.ConfigInvalidSecurityStateEncoderType, this.SecurityStateEncoderType, typeof(SecurityStateEncoder).ToString())));
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
54extensionType.ToString(),
System\ServiceModel\Configuration\UserNameServiceElement.cs (1)
139SR.GetString(SR.ConfigInvalidUserNamePasswordValidatorType, this.CustomUserNamePasswordValidatorType, typeof(UserNamePasswordValidator).ToString())));
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (1)
112SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(X509CertificateValidator).ToString())));
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (1)
94SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(X509CertificateValidator).ToString())));
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (1)
94SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(X509CertificateValidator).ToString())));
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
480h.Add("MetadataType", metadataType.ToString());
System\ServiceModel\Description\ServiceDebugBehavior.cs (2)
86value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttp)); 115value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttps));
System\ServiceModel\Description\ServiceMetadataBehavior.cs (2)
91value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttp)); 120value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttps));
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
144dictionaryWriter.WriteAttributeString(MessageLogTraceRecord.TypeElementName, this.type.ToString());
System\ServiceModel\Diagnostics\PeerNodeTraceRecord.cs (1)
231writer.WriteElementString("Exception", exception.GetType().ToString() + ":" + exception.Message);
System\ServiceModel\Diagnostics\PerformanceCounters.cs (1)
679Fx.Assert(null != method, o.GetType().ToString() + " must have method " + methodName);
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (9)
546writer.WriteElementString("TokenType", token.GetType().ToString()); 555xml.WriteElementString("SessionTokenType", sessiontoken.GetType().ToString()); 611xml.WriteElementString("ResourceType", claim.Resource.GetType().ToString()); 1068xml.WriteElementString("IdentityVerifierType", this.identityVerifier.ToString()); 1100xml.WriteElementString("IdentityVerifierType", this.identityVerifier.ToString()); 1133xml.WriteElementString("ResourceType", claim.Resource.GetType().ToString()); 1164xml.WriteElementString("IdentityVerifierType", this.identityVerifier.ToString()); 1192xml.WriteElementString("IdentityVerifierType", this.identityVerifier.ToString()); 1219xml.WriteElementString("IdentityVerifierType", this.identityVerifier.ToString());
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
861return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Dispatcher\ChannelDispatcherCollection.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.service.GetType().ToString())); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.service.GetType().ToString()));
System\ServiceModel\Dispatcher\CodeGenerator.cs (4)
259EmitSourceInstruction("Callvirt " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 265EmitSourceInstruction("Static Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 271EmitSourceInstruction("Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 279EmitSourceInstruction("Newobj " + constructor.ToString() + " on type " + constructor.DeclaringType.ToString());
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
794string message = SR.GetString(SR.SFxNullReplyFromFormatter2, this.Formatter.GetType().ToString(), (this.name ?? ""));
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
331string message = SR.GetString(SR.SFxNullReplyFromExtension2, this.messageInspectors[i].GetType().ToString(), (rpc.Operation.Name ?? ""));
System\ServiceModel\Dispatcher\InstanceContextManager.cs (1)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
122string text = SR.GetString(SR.SFxMultipleCallbackFromSynchronizationContext, context.GetType().ToString());
System\ServiceModel\EndpointIdentity.cs (1)
264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnrecognizedIdentityPropertyType, this.IdentityClaim.GetType().ToString())));
System\ServiceModel\ExceptionDetail.cs (1)
31this.type = exception.GetType().ToString();
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeRecipient, this.GetType().ToString())));
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeRecipient, this.GetType().ToString())));
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (1)
61result.Append(this.GetType().ToString());
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (2)
219throw DiagnosticUtility.ExceptionUtility.ThrowHelperInvalidOperation( SR.GetString( SR.ID4240, tokenRequirement.GetType().ToString() ) ); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperInvalidOperation( SR.GetString( SR.ID4240, tokenRequirement.GetType().ToString() ) );
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
255Exception e = new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeUsed, this.GetType().ToString(), state.ToString()));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityStandardsManagerNotSet, this.GetType().ToString()))); 615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMisMatch, "IInitiatorSecuritySessionProtocol", this.GetType().ToString())));
System\ServiceModel\Security\SecuritySessionServerSettings.cs (3)
1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMisMatch, "IAcceptorSecuritySessionProtocol", this.GetType().ToString()))); 3063throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ServerReceivedCloseMessageStateIsCreated, this.GetType().ToString()))); 3843throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ServerReceivedCloseMessageStateIsCreated, this.GetType().ToString())));
System\ServiceModel\Security\SecurityUtils.cs (1)
566throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.MultipleMatchingCryptosFound, typeof(T).ToString())));
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (1)
174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeInitiator, this.GetType().ToString())));
System\ServiceModel\Security\TlsnegoTokenAuthenticator.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TokenProviderReturnedBadToken, token == null ? "<null>" : token.GetType().ToString())));
System\ServiceModel\Security\TlsnegoTokenProvider.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TokenProviderReturnedBadToken, token.GetType().ToString())));
System\ServiceModel\Security\Tokens\ProviderBackedSecurityToken.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new SecurityTokenException( SR.GetString( SR.SecurityTokenNotResolved, _tokenProvider.GetType().ToString() ) ) );
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityTokenParametersCloneInvalidResult, this.GetType().ToString()))); 197sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
236sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
System\ServiceModel\Security\WrappedSamlSecurityTokenAuthenticator.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentException( SR.GetString( SR.ID4101, token.GetType().ToString() ) ) );
System\ServiceModel\ServiceChannelManager.cs (3)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
270string message = SR.GetString(SR.SFxCollectionWrongType2, type.ToString(), typeof(T).ToString());
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
849throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.FeedHasNonContiguousItems, this.GetType().ToString())));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
996throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.FeedHasNonContiguousItems, this.GetType().ToString())));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\Diagnostics\TraceUtility.cs (1)
48return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\ContractValidationHelper.cs (3)
212Constraint.AddValidationError(context, new ValidationError(SR2.PropertyMismatch(declaredMessageType.ToString(), "type", targetMessage.MessageType.ToString(), operation.Name, operation.DeclaringContract.Name))); 217Constraint.AddValidationError(context, new ValidationError(SR2.PropertyMismatch(declaredMessageType.ToString(), "type", "null", operation.Name, operation.DeclaringContract.Name)));
System\ServiceModel\Activities\SendMessageChannelCache.cs (1)
178throw FxTrace.Exception.AsError(new ObjectDisposedException(typeof(SendMessageChannelCache).ToString()));
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
366TD.ServiceEndpointAdded(address.Uri.ToString(), binding.GetType().ToString(), serviceEndpoint.Contract.Name);
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\DuplicateMessageDetector.cs (2)
44throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString())); 72throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\UdpSocket.cs (1)
265throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString()));
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (1)
353TD.SynchronizationContextReset(originalSynchronizationContext.GetType().ToString());
System.ServiceModel.Internals (1)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
349return String.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
System.ServiceModel.Web (11)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (1)
272SR2.GetString(SR2.ConfigInvalidWebContentTypeMapperType, contentTypeMapperType, WebContentTypeMapperType.ToString())));
System\ServiceModel\Description\WebHttpBehavior.cs (3)
355ValidateIsWebHttpBinding(endpoint, this.GetType().ToString()); 1251new InvalidOperationException(System.ServiceModel.SR2.GetString(System.ServiceModel.SR2.StreamBodyMemberNotSupported, this.GetType().ToString(), contractName, opName, md.MessageType.ToString(), description.Name)));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (5)
161SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(XmlSerializerFormatAttribute).Name, this.GetType().ToString()))); 169endpoint.Contract.Name, method, this.GetType().ToString()))); 175SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 181SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 266new InvalidOperationException(SR2.GetString(SR2.JsonNoEndpointAtMetadataAddress, this.GetType().ToString(), serviceEndpoint.Address, serviceEndpoint.Name, host.Description.Name)));
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
156parameterType.ToString(), this.GetType().Name))); 246parameterType.ToString(), this.GetType().Name)));
System.Transactions (2)
System\Transactions\Trace\DiagnosticTrace.cs (1)
471return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\Transactions\Trace\TraceRecords.cs (1)
953xml.WriteElementString("TransactionManagerType", tmType.ToString());
System.Web (41)
Configuration\CompilationSection.cs (1)
808Message = SR.GetString(SR.Config_base_report_exception_type, e.GetType().ToString()); // at least this is better than no message
Configuration\HttpCapabilitiesBase.cs (1)
315throw new Exception(SR.GetString(SR.Could_not_create_type_instance, adapterType.ToString()));
Configuration\ProvidersHelper.cs (2)
31throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, providerType.ToString())); 62throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, providerType.ToString()));
Configuration\RuleInfoComparer.cs (4)
60return String.Compare(xType.ToString(), yType.ToString(), StringComparison.Ordinal); 63Debug.Trace("RuleInfoComparer", "xType=" + xType.ToString() + 64"; yType=" + yType.ToString() + "; res=" + res);
Configuration\WebBaseEventKeyComparer.cs (2)
46return Comparer.Default.Compare(xType.ToString(), yType.ToString());
HttpApplication.cs (3)
3076targetTypeStr = _handler.Method.ReflectedType.ToString(); 3197_targetTypeStr = _beginHandler.Method.ReflectedType.ToString(); 3736targetTypeStr = _handler.Method.ReflectedType.ToString();
httpserverutility.cs (1)
673throw new HttpException(SR.GetString(SR.Error_executing_child_request_for_handler, handler.GetType().ToString()), error);
Management\MailWebEventProvider.cs (2)
61SR.GetString(SR.MailWebEventProvider_no_recipient_error, this.GetType().ToString(), 95eventRaised.GetType().ToString(),
Management\SqlWebEventProvider.cs (2)
130sqlCommand.Parameters[n++].Value = eventRaised.GetType().ToString(); // @EventType 161sqlCommand.Parameters[n++].Value = (exception != null) ? exception.GetType().ToString() : Convert.DBNull;
Management\WebEvents.cs (2)
1358formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_exception_type, ex.GetType().ToString())); 1366fields.Add(new WebEventFieldData("ExceptionType", ErrorException.GetType().ToString(), WebEventFieldType.String));
Profile\HttpProfileBase.cs (1)
235string defaultType = typeof(ProfileBase).ToString();
Profile\ProfileProvider.cs (1)
51throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(ProfileProvider).ToString()), "provider");
Security\Membership.cs (1)
467throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(MembershipProvider).ToString()));
Security\Roles.cs (2)
538throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(RoleProvider).ToString())); 630throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(RoleProvider).ToString()), "provider");
SiteMapNodeCollection.cs (1)
200SR.GetString(SR.SiteMapNodeCollection_Invalid_Type, value.GetType().ToString()));
UI\EmptyControlCollection.cs (1)
30Owner.GetType().ToString()));
UI\InternalControlCollection.cs (1)
21Owner.GetType().ToString()));
UI\ObjectConverter.cs (6)
73SR.GetString(SR.Cannot_convert_from_to, fromType.ToString(), toType.ToString())); 124SR.GetString(SR.Cannot_convert_from_to, fromType.ToString(), toType.ToString())); 129SR.GetString(SR.Cannot_convert_from_to, fromType.ToString(), toType.ToString()));
UI\PageTheme.cs (2)
43String.Empty : ctrlType.ToString())); 93return new SkinKey(controlType.ToString(), skinID);
UI\WebControls\BaseValidator.cs (1)
84this.GetType().ToString()));
UI\WebControls\BulletedList.cs (1)
58throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "AutoPostBack", this.GetType().ToString()));
UI\WebControls\Content.cs (1)
162throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "ContentPlaceHolderID", this.GetType().ToString()));
UI\WebControls\ImageButton.cs (1)
146throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "GenerateEmptyAlternateText", this.GetType().ToString()));
UI\WebControls\Literal.cs (1)
36ControlType.ToString()));
System.Web.ApplicationServices (1)
Security\MembershipProviderCollection.cs (1)
24throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, ApplicationServicesStrings.Provider_must_implement_type, typeof(MembershipProvider).ToString()), "provider");
System.Web.DataVisualization (22)
Common\Borders3D\Borders3D.cs (2)
624 throw (new ArgumentException( SR.ExceptionBorderTypeRegistryUnsupportedType( serviceType.ToString()) )); 690 CreateInstance(((Type)registeredBorderTypes[name]).ToString());
Common\ChartTypes\ChartTypeRegistry.cs (2)
154throw (new ArgumentException(SR.ExceptionChartTypeRegistryUnsupportedType( serviceType.ToString() ) ) ); 230 CreateInstance(((Type)registeredChartTypes[name]).ToString());
Common\Converters\CustomAttributesConverters.cs (1)
677throw (new InvalidOperationException(SR.ExceptionCustomAttributeTypeUnsupported( this._customAttributeInfo.ValueType.ToString() )));
Common\Converters\DataManagerConverters.cs (1)
425throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.Instance.GetType().ToString())));
Common\DataManager\DataManager.cs (1)
102 throw (new ArgumentException( SR.ExceptionDataManagerUnsupportedType(serviceType.ToString())));
Common\DataManager\DataSeries.cs (1)
944 throw(new ArgumentException(SR.ExceptionDataSeriesPointTypeUnsupported( type.ToString() ) ));
Common\Formulas\FormulaRegistry.cs (2)
117 throw (new ArgumentException( SR.ExceptionFormulaModuleRegistryUnsupportedType( serviceType.ToString()))); 139 CreateInstance(((Type)registeredModules[name]).ToString());
Common\General\Chart.cs (1)
1590 throw (new ArgumentException( SR.ExceptionChartPictureUnsupportedType( serviceType.ToString() ) ) );
Common\General\ChartSerializer.cs (1)
174 throw (new ArgumentException( SR.ExceptionChartSerializerUnsupportedType( serviceType.ToString())));
Common\Utilities\CustomAttributesRegistry.cs (1)
435throw (new ArgumentException(SR.ExceptionCustomAttributesRegistryUnsupportedType( serviceType.ToString()) ));
Common\Utilities\ImageLoader.cs (1)
107 throw (new ArgumentException( SR.ExceptionImageLoaderUnsupportedType( serviceType.ToString())));
Common\Utilities\KeywordsRegistry.cs (1)
143 throw (new ArgumentException( SR.ExceptionKeywordsRegistryUnsupportedType(serviceType.ToString())));
Common\Utilities\XmlSerializer.cs (7)
732string name = obj.GetType().ToString(); 850throw (new InvalidOperationException(SR.ExceptionChartSerializerDefaultConstructorUndefined(pi.PropertyType.ToString()))); 2132throw (new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown(childNode.Name, objectToDeserialize.GetType().ToString()))); 2202 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( attrName,obj.GetType().ToString()))); 2788throw (new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported(obj.GetType().ToString()))); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3201 throw(new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported( obj.GetType().ToString() )));
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
161throw new InvalidOperationException(Strings.EntityDataSourceUtil_InsertUpdateParametersDontMatchPropertyNameOnEntity(key, entityWrapper.WrappedEntity.GetType().ToString()));
System.Web.Extensions (1)
ClientServices\Providers\ClientSettingsProvider.cs (1)
168name = this.GetType().ToString();
System.Web.Mobile (3)
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
263wmlWriter.WriteEncodedText(ex.GetType().ToString());
UI\MobileControls\MobileControl.cs (2)
926GetType().ToString(), 1010GetType().ToString(),
System.Windows.Forms (4)
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2586message = exception.GetType().ToString() + ": " + exception.Message;
winforms\Managed\System\WinForms\Panel.cs (1)
307return (ClientUtils.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)) ? (borderStyleType.ToString() + "." + value.ToString()) : "[Invalid BorderStyle]";
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2591iwdata.SetData(typeof(ToolStripItem).ToString(), data);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
2304Debug.Assert(cell != null, "Expected ToolStripPanel cells only!!!" + arrayListEnumerator.Current.GetType().ToString());
System.Windows.Forms.DataVisualization (23)
Common\Borders3D\Borders3D.cs (2)
624 throw (new ArgumentException( SR.ExceptionBorderTypeRegistryUnsupportedType( serviceType.ToString()) )); 690 CreateInstance(((Type)registeredBorderTypes[name]).ToString());
Common\ChartTypes\ChartTypeRegistry.cs (2)
154throw (new ArgumentException(SR.ExceptionChartTypeRegistryUnsupportedType( serviceType.ToString() ) ) ); 230 CreateInstance(((Type)registeredChartTypes[name]).ToString());
Common\Converters\CustomAttributesConverters.cs (1)
677throw (new InvalidOperationException(SR.ExceptionCustomAttributeTypeUnsupported( this._customAttributeInfo.ValueType.ToString() )));
Common\Converters\DataManagerConverters.cs (1)
425throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.Instance.GetType().ToString())));
Common\DataManager\DataManager.cs (1)
102 throw (new ArgumentException( SR.ExceptionDataManagerUnsupportedType(serviceType.ToString())));
Common\DataManager\DataSeries.cs (1)
944 throw(new ArgumentException(SR.ExceptionDataSeriesPointTypeUnsupported( type.ToString() ) ));
Common\Formulas\FormulaRegistry.cs (2)
117 throw (new ArgumentException( SR.ExceptionFormulaModuleRegistryUnsupportedType( serviceType.ToString()))); 139 CreateInstance(((Type)registeredModules[name]).ToString());
Common\General\Chart.cs (1)
1590 throw (new ArgumentException( SR.ExceptionChartPictureUnsupportedType( serviceType.ToString() ) ) );
Common\General\ChartSerializer.cs (1)
174 throw (new ArgumentException( SR.ExceptionChartSerializerUnsupportedType( serviceType.ToString())));
Common\Utilities\CustomAttributesRegistry.cs (1)
435throw (new ArgumentException(SR.ExceptionCustomAttributesRegistryUnsupportedType( serviceType.ToString()) ));
Common\Utilities\ImageLoader.cs (1)
107 throw (new ArgumentException( SR.ExceptionImageLoaderUnsupportedType( serviceType.ToString())));
Common\Utilities\KeywordsRegistry.cs (1)
143 throw (new ArgumentException( SR.ExceptionKeywordsRegistryUnsupportedType(serviceType.ToString())));
Common\Utilities\XmlSerializer.cs (7)
732string name = obj.GetType().ToString(); 850throw (new InvalidOperationException(SR.ExceptionChartSerializerDefaultConstructorUndefined(pi.PropertyType.ToString()))); 2132throw (new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown(childNode.Name, objectToDeserialize.GetType().ToString()))); 2202 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( attrName,obj.GetType().ToString()))); 2788throw (new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported(obj.GetType().ToString()))); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3201 throw(new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported( obj.GetType().ToString() )));
WinForm\Utilities\Printing.cs (1)
88 throw (new ArgumentException( SR.ExceptionChartSerializerUnsupportedType( serviceType.ToString() ) ) );
System.Workflow.Activities (12)
LocalService\MessageQueueKey.cs (1)
244stringBuilder.AppendLine("Interface Type:" + this.interfaceType.ToString());
LocalService\MethodMessage.cs (1)
140return (this.interfaceType.ToString());
Rules\DeclarativeExpressionConditionDeclaration.cs (1)
166string message = string.Format(CultureInfo.CurrentCulture, Messages.ConditionExpressionNull, typeof(CodePrimitiveExpression).ToString());
Rules\Expressions.cs (9)
49string message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeThisReferenceExpression).ToString()); 118string message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodePrimitiveExpression).ToString()); 192message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeBinaryOperatorExpression).ToString()); 1276message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeMethodInvokeExpression).ToString()); 1732string message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeDirectionExpression).ToString()); 1899string message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeTypeReferenceExpression).ToString()); 1995message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeCastExpression).ToString()); 2920message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeObjectCreateExpression).ToString()); 3220message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeObjectCreateExpression).ToString());
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
208throw new Exception(SR.GetString(SR.General_MissingService, typeof(ITypeProvider).ToString()));
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
417return this.runtimeType.ToString();
System.Workflow.Runtime (6)
PerformanceCounterManager.cs (1)
356throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.InvalidArgumentType, "sender", typeof(WorkflowExecutor).ToString()));
Tracking.cs (2)
521throw new InvalidOperationException(ExecutionStringManager.MissingProfileForService + serviceType.ToString()); 533throw new InvalidOperationException(ExecutionStringManager.MissingProfileForService + serviceType.ToString() + ExecutionStringManager.MissingProfileForVersion + versionId.ToString());
WorkflowExecutor.cs (1)
3146throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.InvalidArgumentType, "dependencyObject", typeof(Activity).ToString()));
WorkflowRuntime.cs (2)
1092ExecutionStringManager.MoreThanOneService, serviceType.ToString())); 1189throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.InvalidArgumentType, "sender", typeof(WorkflowExecutor).ToString()));
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
372if (typeof(void).ToString().Equals(e.FormattedValue) && !(this.parametersGrid.Rows[e.RowIndex].Cells[this.nameColumn.Index].Value.Equals(SR2.GetString(SR2.ReturnValueString))))
System.Xml (27)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
1575throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1578throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1581throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, null);
System\Xml\Core\XmlReader.cs (2)
350throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 353throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XmlReaderAsync.cs (2)
70throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 73throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XsdValidatingReader.cs (6)
605throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 608throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 611throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 864throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 867throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 870throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XsdValidatingReaderAsync.cs (6)
87throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 90throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 93throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 165throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 168throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 171throw new XmlException(Res.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Serialization\Types.cs (2)
642throw new InvalidOperationException(Res.GetString(Res.XmlUnsupportedOpenGenericType, type.ToString())); 830typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
System\Xml\Serialization\XmlCodeExporter.cs (1)
281if (mapping.TypeDesc.FullName != type.ToString() && !(mapping is EnumMapping)) {
System\Xml\XPath\Internal\Query.cs (4)
167if (nav.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 168if (nav.GetType().ToString() == "System.Xml.DataDocumentXPathNavigator") return; 191if (curr.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 192if (curr.GetType().ToString() == "System.Xml.DataDocumentXPathNavigator") return;
System\Xml\XPath\XPathNavigator.cs (1)
856if (n1.GetType().ToString() != "Microsoft.VisualStudio.Modeling.StoreNavigator") {
WindowsBase (2)
Base\MS\Internal\AvTrace.cs (1)
321+ GetTypeHelper(parameters[j]).ToString() + "'" );
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
760SR.Get(SRID.InvalidDocumentPropertyType, propVal.GetType().ToString()),
XamlBuildTask (5)
Microsoft\Build\Tasks\Xaml\CompilationPass2TaskInternal.cs (2)
342throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), SR.AssemblyNotFound(ResolveAssemblyHelper.FileNotFound)))); 350throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), e.Message)));
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (1)
564throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), e.Message)));
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (2)
715e.GetType().ToString(), 717e.InnerException != null ? e.InnerException.GetType().ToString() : "null",