internal PointerWrapper(IntPtr ptr, PtrKind kind) { if (PointerWrapper._ptrRegister.ContainsKey(ptr)) { throw new SwinGameException("Error managing resources."); } PointerWrapper._ptrRegister[ptr] = this; Pointer = ptr; _Kind = kind; }
internal NoFreePointerWrapper(IntPtr ptr, PtrKind kind) : base(ptr, kind) { }
/// <summary> /// Initializes a new instance of the <see cref="Tptr"/> class. /// </summary> /// <param name="ptrKind">The kind of pointer.</param> /// <param name="type">The type associated with the underlying expression.</param> public Tptr(PtrKind ptrKind, Typ type) { Kind = ptrKind; Type = type; }