ToByteArray() публичный Метод

public ToByteArray ( ) : byte[]
Результат byte[]
        public static SqlBinary op_Explicit(SqlGuid x)
        {
            if (x.IsNull)
            {
                return(SqlBinary.Null);
            }

            return(new SqlBinary(x.ToByteArray()));
        }
Пример #2
0
 /// <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(); }
Пример #3
0
 /// <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()); }
Пример #4
0
		/// <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();                        }
Пример #5
0
		/// <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());         }
Пример #6
0
		/// <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()); }
Пример #7
0
        public static SqlBinary op_Explicit(SqlGuid x)
        {
            if(x.IsNull)
            {
                return SqlBinary.Null;
            }

            return new SqlBinary(x.ToByteArray());
        }