コード例 #1
0
ファイル: JDNAssembly.cs プロジェクト: nhtha/JavaDotNet
        /// <summary>
        /// Creates a new object of the given Type.
        /// </summary>
        /// <param name="typeName"> Name of the type from this assembly. </param>
        /// <returns> Returns new object. </returns>
        public JDNObject create(string typeName)
        {
            JDNType type = getType(typeName);

            return(type.create());
        }
コード例 #2
0
ファイル: JDNAssembly.cs プロジェクト: nhtha/JavaDotNet
        /// <summary>
        /// Creates a new object of the given Type and parameters.
        /// </summary>
        /// <param name="typeName"> Name of the type from this assembly. </param>
        /// <param name="parameters"> Parameters used in constructor. </param>
        /// <returns> Returns new object. </returns>
        public JDNObject create(string typeName, object[] parameters)
        {
            JDNType type = getType(typeName);

            return(type.create(parameters));
        }