Ejemplo n.º 1
0
        public DynamicJavaClass(string jniClassName)
        {
            if (jniClassName == null)
            {
                throw new ArgumentNullException("jniClassName");
            }

            JniClassName = jniClassName;
            info         = JavaClassInfo.GetClassInfo(jniClassName);
        }
Ejemplo n.º 2
0
        public DynamicJavaInstance(IJavaPeerable value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            Value = value;

            var type = JniEnvironment.Types.GetJniTypeNameFromInstance(value.PeerReference);

            klass = JavaClassInfo.GetClassInfo(type);
        }