Example #1
0
        public static ScoredItem <Byte> ParseByte(BinaryReader reader)
        {
            Byte value    = reader.ReadByte();
            bool isScored = reader.ReadBoolean();

            ScoredItem <Byte> scoredItem = new ScoredItem <Byte>(value, isScored);

            return(scoredItem);
        }
Example #2
0
        public static ScoredItem <Char> ParseChar(BinaryReader reader)
        {
            Char value    = reader.ReadChar();
            bool isScored = reader.ReadBoolean();

            ScoredItem <Char> scoredItem = new ScoredItem <Char>(value, isScored);

            return(scoredItem);
        }
Example #3
0
        public static ScoredItem <EAuditSettings> ParseAuditSettings(BinaryReader reader)
        {
            EAuditSettings value    = (EAuditSettings)reader.ReadInt32();
            bool           isScored = reader.ReadBoolean();

            ScoredItem <EAuditSettings> scoredItem = new ScoredItem <EAuditSettings>(value, isScored);

            return(scoredItem);
        }
Example #4
0
        public static ScoredItem <bool> ParseBoolean(BinaryReader reader)
        {
            bool value    = reader.ReadBoolean();
            bool isScored = reader.ReadBoolean();

            ScoredItem <bool> scoredItem = new ScoredItem <bool>(value, isScored);

            return(scoredItem);
        }
Example #5
0
        public static ScoredItem <UInt64> ParseUInt64(BinaryReader reader)
        {
            UInt64 value    = reader.ReadUInt64();
            bool   isScored = reader.ReadBoolean();

            ScoredItem <UInt64> scoredItem = new ScoredItem <UInt64>(value, isScored);

            return(scoredItem);
        }
Example #6
0
        public static ScoredItem <String> ParseString(BinaryReader reader)
        {
            String value    = reader.ReadString();
            bool   isScored = reader.ReadBoolean();

            ScoredItem <String> scoredItem = new ScoredItem <String>(value, isScored);

            return(scoredItem);
        }
Example #7
0
        public static ScoredItem <Single> ParseSingle(BinaryReader reader)
        {
            Single value    = reader.ReadSingle();
            bool   isScored = reader.ReadBoolean();

            ScoredItem <Single> scoredItem = new ScoredItem <Single>(value, isScored);

            return(scoredItem);
        }
Example #8
0
        public static ScoredItem <Int32> ParseInt32(BinaryReader reader)
        {
            Int32 value    = reader.ReadInt32();
            bool  isScored = reader.ReadBoolean();

            ScoredItem <Int32> scoredItem = new ScoredItem <Int32>(value, isScored);

            return(scoredItem);
        }
Example #9
0
        public static ScoredItem <Decimal> ParseDecimal(BinaryReader reader)
        {
            Decimal value    = reader.ReadDecimal();
            bool    isScored = reader.ReadBoolean();

            ScoredItem <Decimal> scoredItem = new ScoredItem <Decimal>(value, isScored);

            return(scoredItem);
        }
Example #10
0
        public static ScoredItem <Range> ParseRange(BinaryReader reader)
        {
            Range range = Range.Parse(reader);

            bool isScored = reader.ReadBoolean();

            ScoredItem <Range> scoredItem = new ScoredItem <Range>(range, isScored);

            return(scoredItem);
        }
Example #11
0
        public static ScoredItem <Char[]> ParseChars(BinaryReader reader)
        {
            Int32 length = reader.ReadInt32();

            Char[] value    = reader.ReadChars(length);
            bool   isScored = reader.ReadBoolean();

            ScoredItem <Char[]> scoredItem = new ScoredItem <Char[]>(value, isScored);

            return(scoredItem);
        }
Example #12
0
        public static ScoredItem <Range> ParseRange(BinaryReader reader)
        {
            int min = reader.ReadInt32();
            int max = reader.ReadInt32();

            bool isScored = reader.ReadBoolean();

            ScoredItem <Range> scoredItem = new ScoredItem <Range>(new Range(min, max), isScored);

            return(scoredItem);
        }