Stash.Engine.InternalId.AsByteArray C# (CSharp) Method

AsByteArray() public method

public AsByteArray ( ) : byte[]
return byte[]
        public byte[] AsByteArray()
        {
            return Value.ToByteArray();
        }

Usage Example

 public static byte[] ValueForKey(this HashDatabase store, InternalId key)
 {
     try
     {
         return store.Get(new DatabaseEntry(key.AsByteArray())).Value.Data;
     }
     catch(NotFoundException)
     {
         Assert.Fail("ValueForKey: Key not found");
     }
     return null;
 }
All Usage Examples Of Stash.Engine.InternalId::AsByteArray