Example #1
0
 /// <summary>
 /// Create bin with a blob value.  The value will be java serialized.
 /// This method is faster than the bin Object constructor because the blob is converted
 /// directly instead of using multiple "instanceof" type checks with a blob default.
 /// <para>
 /// For servers configured as "single-bin", enter a null or empty name.
 /// </para>
 /// </summary>
 /// <param name="name">bin name, current limit is 14 characters</param>
 /// <param name="value">bin value</param>
 public static Bin AsBlob(string name, object value)
 {
     return(new Bin(name, Value.GetAsBlob(value)));
 }