public void CreateGenericObjectReferenceArgumentState_DefaultValue()
        {
            var s = marshaler.CreateGenericObjectReferenceArgumentState(default(T));

            if (IsJniValueType)
            {
                Assert.IsTrue(s.ReferenceValue.IsValid);
                Assert.AreEqual(new JniArgumentValue(s.ReferenceValue), s.JniArgumentValue);
            }
            else
            {
                Assert.IsFalse(s.ReferenceValue.IsValid);
                Assert.AreEqual(new JniArgumentValue(), s.JniArgumentValue);
            }
            Assert.IsNull(s.PeerableValue);
            marshaler.DestroyGenericArgumentState(default(T), ref s);
            Assert.AreEqual(new JniValueMarshalerState(), s);
        }
 public override JniValueMarshalerState CreateGenericObjectReferenceArgumentState(DemoValueType value, ParameterAttributes synchronize)
 {
     return(Int32Marshaler.CreateGenericObjectReferenceArgumentState(value.Value, synchronize));
 }