A single-value element is a simple sequence of bytes. There may be
only one single-value element for each Resource-ID, Kind-ID pair. A single value element is represented as a DataValue, which contains the following two elements: RELOAD base -12 p.83 --alex
Beispiel #1
0
        /// <summary>
        /// This private Constructor creates instances of StoredDataValue, that carray a single_value_entry
        /// </summary>        
        public StoredDataValue(IUsage value, Boolean exists) {

            single_value_entry = createDataValue(value, exists);
        }
Beispiel #2
0
        private DataValue createDataValue(IUsage value, Boolean exists) {

            DataValue dataValue = new DataValue();
            if (value != null && value.Length != 0 && exists) {
                dataValue.value = value;
                dataValue.exists = true;
                return dataValue;
            }
            else {
                dataValue.value = null;
                dataValue.exists = false;
                return dataValue;
            }
        }