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

CannotAutoInitializeValueTypeElementThroughProperty() static private method

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

Usage Example

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