mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
flow
This commit is contained in:
@ -257,9 +257,9 @@ public static class Codec
|
||||
{
|
||||
|
||||
var genericType = type.GetGenericTypeDefinition();
|
||||
if (genericType == typeof(DistributedPropertyContext<>))
|
||||
if (genericType == typeof(PropertyContext<>))
|
||||
{
|
||||
valueOrSource = ((IDistributedPropertyContext)valueOrSource).GetValue(connection);
|
||||
valueOrSource = ((IPropertyContext)valueOrSource).GetValue(connection);
|
||||
}
|
||||
else if (genericType == typeof(Func<>))
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ namespace Esiur.Data
|
||||
|
||||
public UUID(byte[] data, uint offset)
|
||||
{
|
||||
if (offset + 16 < data.Length)
|
||||
if (offset + 16 > data.Length)
|
||||
throw new Exception("UUID data size must be at least 16 bytes");
|
||||
|
||||
Data = DC.Clip(data, offset, 16);
|
||||
|
Reference in New Issue
Block a user