public static StringInfo CreateInstance(IntPtr instance)
{
if (instance == IntPtr.Zero)
return null;
NativeStringInfo native = new NativeStringInfo(instance);
StringInfo result = new StringInfo();
result.Datum = ByteConverter.ToArray(native.Datum, native.Length);
return result;
}
}