NetSerializer.Primitives.ReadPrimitive C# (CSharp) Méthode

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, System.DateTime &value ) : void
stream Stream
value System.DateTime
Résultat void
        public static void ReadPrimitive(Stream stream, out DateTime value)
        {
            long v;
            ReadPrimitive(stream, out v);
            value = DateTime.FromBinary(v);
        }

Same methods

Primitives::ReadPrimitive ( Stream stream, bool &value ) : void
Primitives::ReadPrimitive ( Stream stream, byte &value ) : void
Primitives::ReadPrimitive ( Stream stream, char &value ) : void
Primitives::ReadPrimitive ( Stream stream, decimal &value ) : void
Primitives::ReadPrimitive ( Stream stream, double &value ) : void
Primitives::ReadPrimitive ( Stream stream, float &value ) : void
Primitives::ReadPrimitive ( Stream stream, int &value ) : void
Primitives::ReadPrimitive ( Stream stream, long &value ) : void
Primitives::ReadPrimitive ( Stream stream, sbyte &value ) : void
Primitives::ReadPrimitive ( Stream stream, short &value ) : void
Primitives::ReadPrimitive ( Stream stream, string &value ) : void
Primitives::ReadPrimitive ( Stream stream, uint &value ) : void
Primitives::ReadPrimitive ( Stream stream, ulong &value ) : void
Primitives::ReadPrimitive ( Stream stream, ushort &value ) : void

Usage Example

        public object Deserialize(Serializer serializer, Type staticType, Stream stream)
        {
            bool result;

            Primitives.ReadPrimitive(stream, out result);
            return(result);
        }
All Usage Examples Of NetSerializer.Primitives::ReadPrimitive