ATMLModelLibrary.model.common.Datum.GetDatumValue C# (CSharp) Method

GetDatumValue() public static method

public static GetDatumValue ( DatumType datum ) : Object
datum DatumType
return Object
        public static Object GetDatumValue(DatumType datum)
        {
            Object value = null;

            if (datum is binary)
                value = ((binary) datum).value;
            if (datum is boolean)
                value = ((boolean) datum).value;
            if (datum is dateTime)
                value = ((dateTime) datum).value;
            if (datum is @double)
                value = ((@double) datum).value;
            if (datum is hexadecimal)
                value = ((hexadecimal) datum).value;
            if (datum is integer)
                value = ((integer) datum).value;
            if (datum is @long)
                value = ((@long) datum).value;
            if (datum is octal)
                value = ((octal) datum).value;
            if (datum is @string)
                value = ((@string) datum).Value;
            if (datum is unsignedInteger)
                value = ((unsignedInteger) datum).value;
            if (datum is unsignedLong)
                value = ((unsignedLong) datum).value;

            return value;
        }