private bool MarshalClassArrayByRef() { ClassToMarshal[] c = new ClassToMarshal[] { new ClassToMarshal(123, "hello") }; ClassToMarshal c2 = new ClassToMarshal(456, "goodbye"); m_mbroProxy.MarshalClassByRef(ref c[0], c2); return(this.EqualsButNotSameInstance(c[0], c2)); }
public override bool Equals(object obj) { ClassToMarshal cls = obj as ClassToMarshal; if (cls == null) { return(false); } if (cls.m_int != m_int) { return(false); } if (cls.m_string != m_string) { return(false); } return(true); }
public void MarshalClassByRef(ref ClassToMarshal c, ClassToMarshal c2) { c = c2; }
private bool MarshalClass() { ClassToMarshal c = new ClassToMarshal(123, "hello"); return(EqualsButNotSameInstance(c, m_mbroProxy.MarshalClass(c))); }
public ClassToMarshal MarshalClass(ClassToMarshal c) { return(c); }
private bool MarshalClassArrayByRef() { ClassToMarshal[] c = new ClassToMarshal[] {new ClassToMarshal( 123, "hello" )}; ClassToMarshal c2 = new ClassToMarshal( 456, "goodbye" ); m_mbroProxy.MarshalClassByRef( ref c[0], c2 ); return this.EqualsButNotSameInstance( c[0], c2 ); }
private bool MarshalClass() { ClassToMarshal c = new ClassToMarshal( 123, "hello" ); return EqualsButNotSameInstance( c, m_mbroProxy.MarshalClass( c ) ); }
public void MarshalClassByRef( ref ClassToMarshal c, ClassToMarshal c2 ) { c = c2; }
public ClassToMarshal MarshalClass( ClassToMarshal c ) { return c; }