コード例 #1
0
        /// <inheritdoc cref="NtCore.GetEntryRaw(string)"/>
        public byte[] GetEntryRaw(string name)
        {
            var v = m_storage.GetEntryValue(name);

            if (v == null || !v.IsRaw())
            {
                throw NtCore.GetValueException(name, v, NtType.Raw);
            }
            return(v.GetRaw());
        }
コード例 #2
0
        /// <inheritdoc cref="NtCore.GetEntryDoubleArray(string)"/>
        public double[] GetEntryDoubleArray(string name)
        {
            var v = m_storage.GetEntryValue(name);

            if (v == null || !v.IsDoubleArray())
            {
                throw NtCore.GetValueException(name, v, NtType.DoubleArray);
            }
            return(v.GetDoubleArray());
        }
コード例 #3
0
        /// <inheritdoc cref="NtCore.GetEntryStringArray(string)"/>
        public string[] GetEntryStringArray(string name)
        {
            var v = m_storage.GetEntryValue(name);

            if (v == null || !v.IsStringArray())
            {
                throw NtCore.GetValueException(name, v, NtType.StringArray);
            }
            return(v.GetStringArray());
        }
コード例 #4
0
        /// <inheritdoc cref="NtCore.GetEntryBooleanArray(string)"/>
        public bool[] GetEntryBooleanArray(string name)
        {
            var v = m_storage.GetEntryValue(name);

            if (v == null || !v.IsBooleanArray())
            {
                throw NtCore.GetValueException(name, v, NtType.BooleanArray);
            }
            return(v.GetBooleanArray());
        }