Home
last modified time | relevance | path

Searched refs:InvalidCastException (Results 201 – 225 of 692) sorted by relevance

12345678910>>...28

/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Web/System.Web.UI.WebControls/
H A DDataGridItemCollection.cs82 throw new InvalidCastException("Target array must be DataGridItem[]"); in CopyTo()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Test.CoreLib/src/System/
H A DRuntimeExceptionHelpers.cs60 return new InvalidCastException(); in GetRuntimeException()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Web.Services/System.Web.Services.Description/
H A DMessagePartCollection.cs81 throw new InvalidCastException (); in GetKey()
H A DPortCollection.cs87 throw new InvalidCastException (); in GetKey()
H A DPortTypeCollection.cs87 throw new InvalidCastException (); in GetKey()
H A DBindingCollection.cs87 throw new InvalidCastException (); in GetKey()
H A DFaultBindingCollection.cs81 throw new InvalidCastException (); in GetKey()
H A DOperationFaultCollection.cs81 throw new InvalidCastException (); in GetKey()
H A DServiceCollection.cs89 throw new InvalidCastException (); in GetKey()
H A DMessageCollection.cs87 throw new InvalidCastException (); in GetKey()
/dports/lang/mono-basic/mono-basic-4.7/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/
H A DDoubleType.vb78 …Throw New InvalidCastException(String.Format(Utils.GetResourceString("CastFromStringToType"), Valu…
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/
H A DMaxLengthAttribute.cs84 … throw new InvalidCastException(SR.Format(SR.LengthAttribute_InvalidValueType, value.GetType())); in IsValid()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Annotations/tests/
H A DStringLengthAttributeTests.cs64 …Assert.Throws<InvalidCastException>(() => attribute.Validate(new object(), new ValidationContext(n… in Validate_ValueNotString_ThrowsInvalidCastException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/tests/Unary/
H A DUnaryConvertTests.cs47 VerifyUnaryConvertThrows<InvalidCastException>(e, useInterpreter); in ConvertUnboxingInvalidCastTest()
100 …VerifyUnaryConvertThrows<InvalidCastException>(Expression.Convert(cObj, typeof(DayOfWeek?)), useIn… in ConvertUnderlyingTypeToNullableEnumTypeTest()
110 …VerifyUnaryConvertThrows<InvalidCastException>(Expression.Convert(Expression.Constant(arr), t), us… in ConvertArrayToIncompatibleTypeTest()
/dports/lang/mono/mono-5.10.1.57/mono/tests/
H A Dbug-400716.cs32 } catch (InvalidCastException) { in TestBadEnumerator()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/ComIntegration/
H A DMonikerBuilder.cs26 …throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidCastException(SR.GetString(SR… in IProxyCreator.CreateProxy()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections/src/System/Collections/Generic/
H A DSortedDictionary.cs358 catch (InvalidCastException)
363 catch (InvalidCastException)
388 catch (InvalidCastException) in IDictionary.Add()
393 catch (InvalidCastException) in IDictionary.Add()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/compmod/system/collections/generic/
H A Dsorteddictionary.cs284 catch (InvalidCastException) {
288 catch (InvalidCastException) {
308 catch (InvalidCastException) { in IDictionary.Add()
312 catch (InvalidCastException) { in IDictionary.Add()
/dports/lang/mono-basic/mono-basic-4.7/vbruntime/Test/Microsoft.VisualBasic.CompilerServices/
H A DDoubleTypeTest.cs67 [ExpectedException(typeof(InvalidCastException))]
H A DSingleTypeTest.cs67 [ExpectedException(typeof(InvalidCastException))]
H A DShortTypeTest.cs67 [ExpectedException(typeof(InvalidCastException))]
H A DLongTypeTest.cs66 [ExpectedException(typeof(InvalidCastException))]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Configuration.ConfigurationManager/tests/Mono/
H A DTypeNameConverterTest.cs79 Assert.Throws<InvalidCastException>(() => o = cv.ConvertFrom(null, null, 59)); in ConvertFrom_TypeError()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.Interop/src/Shared/
H A D__ComObject.cs1397 …private InvalidCastException CreateInvalidCastExceptionForFailedQI(RuntimeTypeHandle interfaceType… in CreateInvalidCastExceptionForFailedQI()
1400 throw new InvalidCastException(); in CreateInvalidCastExceptionForFailedQI()
1419 …return new InvalidCastException(SR.Format(SR.InvalidCast_WinRT, comObjectDisplayName, interfaceDis… in CreateInvalidCastExceptionForFailedQI()
1434 return new InvalidCastException(SR.Format( in CreateInvalidCastExceptionForFailedQI()
1445 return new InvalidCastException(SR.Format( in CreateInvalidCastExceptionForFailedQI()
2036 throw new System.InvalidCastException(); in GetDynamicAdapter()
2586 … throw new System.InvalidCastException(SR.Arg_NoMarshalCreatedObjectUsedOutOfTreadContext); in GetIUnknownForCurrContext()
2744 throw new InvalidCastException(); in GetAddRefedComPointerForCurrentContext()
2771 throw new InvalidCastException(); in GetAddRefedComPointerForCurrentContext()
3043 throw new InvalidCastException(); in EnterContext()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/
H A Dchar.cs435 …throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Boolea… in IConvertible.ToBoolean()
485 …throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Single… in IConvertible.ToSingle()
490 …throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Double… in IConvertible.ToDouble()
495 …throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Decima… in IConvertible.ToDecimal()
500 …throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "DateTi… in IConvertible.ToDateTime()

12345678910>>...28