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; }
private unsafe MultiLocalizedUnicode GetDescription() { IntPtr ptr = SeqDesc->Description; return((ptr != IntPtr.Zero) ? MultiLocalizedUnicode.CopyRef(ptr) : null); }
private unsafe MultiLocalizedUnicode GetModel() { IntPtr ptr = SeqDesc->Model; return((ptr != IntPtr.Zero) ? MultiLocalizedUnicode.CopyRef(ptr) : null); }