System.Linq.Expressions.Strings.TryNotSupportedForValueTypeInstances C# (CSharp) Method

TryNotSupportedForValueTypeInstances() static private method

A string like "TryExpression is not supported as a child expression when accessing a member on type '{0}' because it is a value type. Construct the tree so the TryExpression is not nested inside of this expression."
static private TryNotSupportedForValueTypeInstances ( object p0 ) : string
p0 object
return string
        internal static string TryNotSupportedForValueTypeInstances(object p0) => SR.Format(SR.TryNotSupportedForValueTypeInstances, p0);

Usage Example

 internal static Exception TryNotSupportedForValueTypeInstances(object p0)
 {
     return(new NotSupportedException(Strings.TryNotSupportedForValueTypeInstances(p0)));
 }
Strings