Пример #1
0
		public override bool TryGetMember(GetMemberBinder binder, out object result)
		{
			if (!TryGetClass(binder, out result))
			{
				result = new JavaPackage(_vm, GetQualifiedName(binder.Name));
			}
			return true;
		}
Пример #2
0
		private DarkJava(string jvmDllPath, bool attemptVmReuse, IEnumerable<JavaOption> options)
		{
			_jniWrapper = new JniWrapper(jvmDllPath: jvmDllPath, attemptVmReuse: attemptVmReuse, options: options ?? Enumerable.Empty<JavaOption>());
			_defaultPackage = new JavaPackage(_jniWrapper, "");
		}