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

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

            return(new JniValueMarshalerState(r));
        }