13 public class XString : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 internal XString(global::System.IntPtr cPtr,
bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
XString obj) {
23 return (obj == null) ?
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(
this);
47 public override bool Equals(
object obj)
50 if (ReferenceEquals(s, null)) {
60 return GetString().GetHashCode();
65 if (ReferenceEquals(lhs, rhs)) {
68 else if (ReferenceEquals(lhs, null) || ReferenceEquals(rhs, null)) {
80 public static implicit
operator XString(
string s) {
84 public static implicit
operator string(
XString s)