public IntPtr ManagedToNativeAlloc(string man) { IntPtr newstring = MemoryNative.StrDup(man); return(newstring); }
public IntPtr ManagedToNativeAlloc(T man) { return(MemoryNative.StrDup((string)(object)man)); }