public ModuleDescriptionItem(Interop.Core.ModuleDescription @struct) { Name = @struct.Name; ShortName = @struct.ShortName; LongName = @struct.LongName; Description = @struct.Help; }
internal ModuleDescription(IntPtr pointer) { _pointer = pointer; if (pointer != IntPtr.Zero) { _struct = (Interop.Core.ModuleDescription) Marshal.PtrToStructure(pointer, typeof(Interop.Core.ModuleDescription)); Name = InteropHelper.PtrToString(_struct.Name); ShortName = InteropHelper.PtrToString(_struct.ShortName); LongName = InteropHelper.PtrToString(_struct.LongName); Help = InteropHelper.PtrToString(_struct.Help); } }