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

CannotAutoInitializeValueTypeMemberThroughProperty() static private method

A string like "Cannot auto initialize members of value type through property '{0}', use assignment instead"
static private CannotAutoInitializeValueTypeMemberThroughProperty ( object p0 ) : string
p0 object
return string
        internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object p0) => SR.Format(SR.CannotAutoInitializeValueTypeMemberThroughProperty, p0);

Usage Example

 internal static Exception CannotAutoInitializeValueTypeMemberThroughProperty(object p0)
 {
     return(new InvalidOperationException(Strings.CannotAutoInitializeValueTypeMemberThroughProperty(p0)));
 }
Strings