ToString() public method

Returns a string describing a object.
public ToString ( ) : string
return string
Esempio n. 1
0
 /// <summary>
 /// Converts the value of the specified SqlBinary to its equivalent SqlChars representation.
 /// </summary>
 /// <param name="value">An SqlBinary.</param>
 /// <returns>The equivalent SqlChars.</returns>
 public static SqlChars ToSqlChars(SqlBinary value) { return value.IsNull ? SqlChars.Null : new SqlChars(value.ToString().ToCharArray()); }
Esempio n. 2
0
 /// <summary>
 /// Converts the value of the specified SqlBinary to its equivalent SqlString representation.
 /// </summary>
 /// <param name="value">An SqlBinary.</param>
 /// <returns>The SqlString equivalent of the SqlBinary.</returns>        
 public static SqlString ToSqlString(SqlBinary value) { return value.IsNull ? SqlString.Null : value.ToString(); }
Esempio n. 3
0
		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>SqlChars</c> value.</summary>
		public static SqlChars ToSqlChars(SqlBinary p)       { return p.IsNull? SqlChars.Null: new SqlChars(p.ToString().ToCharArray()); }