We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoslynPad code:
#r "nuget: ExpressionDelegates.Base, 1.0.0" using ExpressionDelegates; using System.Linq; using System.Linq.Expressions; Expression<Func<string, int>> expression = s => s.Length; MemberInfo accessorInfo = ((MemberExpression)expression.Body).Member; Accessor lengthAccessor = ExpressionDelegates.Accessors.Find(accessorInfo); **var value = lengthAccessor.Get("17 letters string");**
ExpressionDelegates.Accessors.Find returns null, so .Get causes a null reference exception.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
RoslynPad code:
ExpressionDelegates.Accessors.Find returns null, so .Get causes a null reference exception.
The text was updated successfully, but these errors were encountered: