예제 #1
0
파일: Attribute.cs 프로젝트: MrJoe/lat
		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;
		}
예제 #2
0
파일: Attribute.cs 프로젝트: MrJoe/lat
 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);
 }