AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.BinaryReader.ReadShort C# (CSharp) Method

ReadShort() private static method

private static ReadShort ( double value, bool specified, System binaryReader ) : short?
value double
specified bool
binaryReader System
return short?
        private static short? ReadShort(double? value, bool specified, System.IO.BinaryReader binaryReader)
        {
            if (specified)
            {
                if (value.HasValue)
                    return (short)value.Value;
                return binaryReader.ReadInt16();
            }
            return null;
        }