7 instantiations of RuntimeBinderException
Microsoft.CSharp (7)
Microsoft\CSharp\RuntimeBinder\Error.cs (6)
17return new RuntimeBinderException(SR.Format(SR.BindPropertyFailedMethodGroup, p0)); 22return new RuntimeBinderException(SR.Format(SR.BindPropertyFailedEvent, p0)); 27return new RuntimeBinderException(SR.BindInvokeFailedNonDelegate); 35return new RuntimeBinderException(SR.NullReferenceOnMemberException); 40return new RuntimeBinderException(SR.Format(SR.BindCallToConditionalMethod, p0)); 45return new RuntimeBinderException(SR.BindToVoidMethodButExpectResult);
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (1)
157return new RuntimeBinderException(string.Format(CultureInfo.InvariantCulture, ErrorFacts.GetMessage(id), prgpsz));
28 references to RuntimeBinderException
Microsoft.AspNetCore.JsonPatch (2)
Internal\DynamicObjectAdapter.cs (2)
193catch (RuntimeBinderException) 230catch (RuntimeBinderException)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
213typeof(Microsoft.CSharp.RuntimeBinder.RuntimeBinderException).GetTypeInfo().Assembly,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OperatorTests.cs (1)
7178CompileAndVerifyException<Microsoft.CSharp.RuntimeBinder.RuntimeBinderException>(comp,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\IndexedPropertyTests.cs (2)
2707CompileAndVerifyException<Microsoft.CSharp.RuntimeBinder.RuntimeBinderException>(compilation2); // As in dev11. 2768CompileAndVerifyException<Microsoft.CSharp.RuntimeBinder.RuntimeBinderException>(compilation2); // As in dev11.
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrValue.cs (1)
657typeof(Microsoft.CSharp.RuntimeBinder.RuntimeBinderException).Assembly,
ResultProviderTestBase.cs (1)
27var exceptionType = typeof(Microsoft.CSharp.RuntimeBinder.RuntimeBinderException).Assembly.GetType(
Microsoft.CSharp (18)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
127catch (RuntimeBinderException e) 137typeof(RuntimeBinderException).GetConstructor(new Type[] { typeof(string) }),
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (1)
13public static RuntimeBinderException Error(ErrorCode id, params ErrArg[] args)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs (5)
12/// <see cref="RuntimeBinderException"/> represents a failure to bind in the sense of a usual compiler error, whereas <see cref="RuntimeBinderInternalCompilerException"/> 19/// Initializes a new instance of the <see cref="RuntimeBinderException"/> class. 26/// Initializes a new instance of the <see cref="RuntimeBinderException"/> class with a specified error message. 35/// Initializes a new instance of the <see cref="RuntimeBinderException"/> class with a specified error message 46/// Initializes a new instance of the <see cref="RuntimeBinderException"/> class with serialized data.
Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs (2)
11/// Represents an error that occurs while processing a dynamic bind in the C# runtime binder. Exceptions of this type differ from <see cref="RuntimeBinderException"/> in that 12/// <see cref="RuntimeBinderException"/> represents a failure to bind in the sense of a usual compiler error, whereas <see cref="RuntimeBinderInternalCompilerException"/>
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
514private static RuntimeBinderException CantConvert(Expr expr, CType dest) 1055private static RuntimeBinderException HandleAmbiguity(CType typeSrc, CType typeDst, List<UdConvInfo> prguci, int iuciBestSrc, int iuciBestDst)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
794private static RuntimeBinderException BadOperatorTypesError(Expr pOperand1, Expr pOperand2)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
1093private RuntimeBinderException ReportErrorsOnFailure() 1231private RuntimeBinderException ReportErrorsForBestMatching(bool bUseDelegateErrors)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
470private static RuntimeBinderException ReportBogus(SymWithType swt)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (1)
2315private static RuntimeBinderException AmbiguousOperatorError(Expr op1, Expr op2)
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (1)
254public static RuntimeBinderException ReportAccessError(SymWithType swtBad, Symbol symWhere, CType typeQual)
System.Windows.Forms.Tests (2)
TestAccessorTests.cs (2)
95Assert.Throws<RuntimeBinderException>(() => access.PublicField = 1918); 105Assert.Throws<RuntimeBinderException>(() => access.PublicProperty = "What?");