public static GnomeKeyring.Attribute New(IntPtr raw) { if (raw == IntPtr.Zero) { return GnomeKeyring.Attribute.Zero; } GnomeKeyring.Attribute self = new GnomeKeyring.Attribute(); self = (GnomeKeyring.Attribute) Marshal.PtrToStructure (raw, self.GetType ()); return self; }
public static GnomeKeyring.Attribute New(IntPtr raw) { if (raw == IntPtr.Zero) { return(GnomeKeyring.Attribute.Zero); } GnomeKeyring.Attribute self = new GnomeKeyring.Attribute(); self = (GnomeKeyring.Attribute)Marshal.PtrToStructure(raw, self.GetType()); return(self); }