Ejemplo n.º 1
0
        internal DictEntry(IntPtr handle)
        {
            var entry = Marshal.PtrToStructure <_DictEntry>(handle);

            Handle      = handle;
            DisplayName = entry.DisplayName != IntPtr.Zero
                    ? MultiLocalizedUnicode.CopyRef(entry.DisplayName) : null;
            DisplayValue = entry.DisplayValue != IntPtr.Zero
                    ? MultiLocalizedUnicode.CopyRef(entry.DisplayValue) : null;
            Name  = entry.Name;
            Value = entry.Value;
            Next  = entry.Next;
        }
Ejemplo n.º 2
0
        private unsafe MultiLocalizedUnicode GetDescription()
        {
            IntPtr ptr = SeqDesc->Description;

            return((ptr != IntPtr.Zero) ? MultiLocalizedUnicode.CopyRef(ptr) : null);
        }
Ejemplo n.º 3
0
        private unsafe MultiLocalizedUnicode GetModel()
        {
            IntPtr ptr = SeqDesc->Model;

            return((ptr != IntPtr.Zero) ? MultiLocalizedUnicode.CopyRef(ptr) : null);
        }