System.Data.Entity/System/Data/Objects/DataClasses/StructuralObject.cs
/// <summary>
/// Makes sure the Byte [] value being set for a property is valid.
/// </summary>
/// <param name="value">
/// The value passed into the property setter.
/// </param>
/// <param name="isNullable">
/// Flag indicating if this property is allowed to be null.
/// </param>
/// <param name="propertyName">
/// Name of the property that is being validated.
/// </param>
/// <returns>
/// Returns the value if valid.
/// </returns>
/// <exception cref="System.Data.ConstraintException">
/// If value is null for a non nullable value.
/// </exception>
Makes sure the Byte [] value being set for a property is valid.
Makes sure the Byte [] value being set for a property is valid .
protected internal static Byte[] SetValidValue(Byte[] value, bool isNullable, string propertyName)
        {
            if (value == null)
            {
                if (!isNullable)
                {
                    EntityUtil.ThrowPropertyIsNotNullable(propertyName);
                }
                return value;
            }
            return (byte[])value.Clone();
        }
protected internal static Byte [ ] SetValidValue ( Byte [ ] value , bool isNullable , string propertyName ) { if ( value == null ) { if ( ! isNullable ) { EntityUtil . ThrowPropertyIsNotNullable ( propertyName ) ; } return value ; } return ( byte [ ] ) value . Clone ( ) ; }
Makes sure the Byte [] value being set for a property is valid.
Makes sure the Byte [] value being set for a property is valid .
Returns the value if valid.
Returns the value if valid .
If value is null for a non nullable value.
If value is null for a non nullable value .
value
Byte[]
The value passed into the property setter.
The value passed into the property setter .
isNullable
bool
Flag indicating if this property is allowed to be null.
Flag indicating if this property is allowed to be null .
propertyName
string
Name of the property that is being validated.
Name of the property that is being validated .