private void AddMethodToTable(LuaDataContainer container, string fieldName, string funcName = null)
        {
            // Gets the type of the delegate to create.
            Type dType = this.GetType().GetNestedType(fieldName + "Delegate", BindingFlags.NonPublic);

            // Gets the delegate for the method to create.
            Delegate d = Delegate.CreateDelegate(dType, this, funcName ?? fieldName);

            // Creates the function and sets it to the table.
            container.BindWithFunction(fieldName, d);
        }
		private void AddMethodToTable(LuaDataContainer container, string fieldName, string funcName = null)
		{
			// Gets the type of the delegate to create.
			Type dType = this.GetType().GetNestedType(fieldName + "Delegate", BindingFlags.NonPublic);

			// Gets the delegate for the method to create.
			Delegate d = Delegate.CreateDelegate(dType, this, funcName ?? fieldName);

			// Creates the function and sets it to the table.
			container.BindWithFunction(fieldName, d);
		}