Beispiel #1
0
 public ModuleDescriptionItem(Interop.Core.ModuleDescription @struct)
 {
     Name        = @struct.Name;
     ShortName   = @struct.ShortName;
     LongName    = @struct.LongName;
     Description = @struct.Help;
 }
Beispiel #2
0
 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);
     }
 }