public static SqlBinary op_Explicit(SqlGuid x) { if (x.IsNull) { return(SqlBinary.Null); } return(new SqlBinary(x.ToByteArray())); }
/// <summary> /// Converts the value of the specified SqlGuid to its equivalent byte array representation. /// </summary> /// <param name="value">An SqlGuid.</param> /// <returns>The equivalent byte array representation.</returns> public static Byte[] ToByteArray(SqlGuid value) { return value.IsNull ? null : value.ToByteArray(); }
/// <summary> /// Converts the value of the specified SqlGuid to its equivalent SqlBytes representation. /// </summary> /// <param name="value">An SqlGuid.</param> /// <returns>The equivalent SqlBytes.</returns> public static SqlBytes ToSqlBytes(SqlGuid value) { return value.IsNull ? SqlBytes.Null : new SqlBytes(value.ToByteArray()); }
/// <summary>Converts the value from <c>SqlGuid</c> to an equivalent <c>Byte[]</c> value.</summary> public static Byte[] ToByteArray(SqlGuid p) { return p.IsNull ? (Byte[])null : p.ToByteArray(); }
/// <summary>Converts the value from <c>SqlGuid</c> to an equivalent <c>SqlBytes</c> value.</summary> public static SqlBytes ToSqlBytes(SqlGuid p) { return p.IsNull ? SqlBytes.Null : new SqlBytes(p.ToByteArray()); }
/// <summary>Converts the value from <c>SqlGuid</c> to an equivalent <c>Byte[]</c> value.</summary> public static Binary ToLinqBinary(SqlGuid p) { return p.IsNull? null: new Binary(p.ToByteArray()); }
public static SqlBinary op_Explicit(SqlGuid x) { if(x.IsNull) { return SqlBinary.Null; } return new SqlBinary(x.ToByteArray()); }