Ejemplo n.º 1
0
        public new static ManagedExceptionNativeInfo Demarshal(Stream stream)
        {
            ManagedExceptionNativeInfo unit = NativeUnitMarshaler <ManagedExceptionNativeInfo> .Demarshal(stream);

            unit.ClassId = UInt64Marshaler.Demarshal(stream);
            unit.Message = StringMarshaler.Demarshal(stream);
            unit.Stack   = MarshalingManager.Demarshal <ulong[]>(stream);
            return(unit);
        }
Ejemplo n.º 2
0
        public static T Demarshal(Stream stream)
        {
            T value = new T();

            value.Uid           = UInt32Marshaler.Demarshal(stream);
            value.Id            = UInt64Marshaler.Demarshal(stream);
            value.BeginLifetime = UInt32Marshaler.Demarshal(stream);
            value.EndLifetime   = UInt32Marshaler.Demarshal(stream);
            value.Name          = StringMarshaler.Demarshal(stream);
            return(value);
        }