public override Char?CreateGenericValue(ref JniObjectReference reference, JniObjectReferenceOptions options, Type targetType)
        {
            if (!reference.IsValid)
            {
                return(null);
            }

            return(JniCharacter.GetValueFromJni(ref reference, options, targetType: null));
        }
        public override JniValueMarshalerState CreateGenericObjectReferenceArgumentState(Char?value, ParameterAttributes synchronize)
        {
            if (!value.HasValue)
            {
                return(new JniValueMarshalerState());
            }
            var r = JniCharacter.CreateLocalRef(value.Value);

            return(new JniValueMarshalerState(r));
        }