public MFTestResults MarshalClassArrayByRef_Test21()
        {
            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) ? MFTestResults.Pass : MFTestResults.Fail);
        }
            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;
 }
 public ClassToMarshal MarshalClass(ClassToMarshal c)
 {
     return c;
 }
        public MFTestResults MarshalClassArrayByRef_Test21()
        {
            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) ? MFTestResults.Pass : MFTestResults.Fail;
        }
        public MFTestResults MarshalClass_Test19()
        {          
            ClassToMarshal c = new ClassToMarshal(123, "hello");          

            return EqualsButNotSameInstance(c, m_mbroProxy.MarshalClass(c)) ? MFTestResults.Pass : MFTestResults.Fail;
        }
 public void MarshalClassByRef(ref ClassToMarshal c, ClassToMarshal c2)
 {
     c = c2;
 }
 public ClassToMarshal MarshalClass(ClassToMarshal c)
 {
     return(c);
 }
        public MFTestResults MarshalClass_Test19()
        {
            ClassToMarshal c = new ClassToMarshal(123, "hello");

            return(EqualsButNotSameInstance(c, m_mbroProxy.MarshalClass(c)) ? MFTestResults.Pass : MFTestResults.Fail);
        }