@@ -117,56 +117,64 @@ public virtual bool IsPreserveWhiteSpaceDuringLoad()
117117// Generating method code for createAttribute
118118 public virtual object CreateAttribute ( string name )
119119 {
120- return WObj . createAttribute ( name ) ;
120+ var arg = WObj . createAttribute ( name ) ;
121+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
121122 }
122123
123124// Generating method code for createCDATASection
124125 public virtual object CreateCDATASection ( string data )
125126 {
126- return WObj . createCDATASection ( data ) ;
127+ var arg = WObj . createCDATASection ( data ) ;
128+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
127129 }
128130
129131// Generating method code for createComment
130132 public virtual object CreateComment ( string data )
131133 {
132- return WObj . createComment ( data ) ;
134+ var arg = WObj . createComment ( data ) ;
135+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
133136 }
134137
135138// Generating method code for createDocumentFragment
136139 public virtual object CreateDocumentFragment ( )
137140 {
138- return WObj . createDocumentFragment ( ) ;
141+ var arg = WObj . createDocumentFragment ( ) ;
142+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
139143 }
140144
141145// Generating method code for createElement
142146 public virtual object CreateElement ( string tagName )
143147 {
144- return WObj . createElement ( tagName ) ;
148+ var arg = WObj . createElement ( tagName ) ;
149+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
145150 }
146151
147152// Generating method code for createNode
148153 public virtual object CreateNode ( object type , string name , object namespaceURI )
149154 {
150- return WObj . createNode ( type , name , namespaceURI ) ;
155+ var arg = WObj . createNode ( type , name , namespaceURI ) ;
156+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
151157 }
152158
153159// Generating method code for createProcessingInstruction
154160 public virtual object CreateProcessingInstruction ( string target , string data )
155161 {
156- return WObj . createProcessingInstruction ( target , data ) ;
162+ var arg = WObj . createProcessingInstruction ( target , data ) ;
163+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
157164 }
158165
159166// Generating method code for createTextNode
160167 public virtual object CreateTextNode ( string data )
161168 {
162- return WObj . createTextNode ( data ) ;
169+ var arg = WObj . createTextNode ( data ) ;
170+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
163171 }
164172
165173// Generating method code for getElementsByTagName
166174 public virtual IList < NHtmlUnit . W3C . Dom . INode > GetElementsByTagName ( string tagName )
167175 {
168-
169- return new NodeListWrapper < NHtmlUnit . W3C . Dom . INode > ( WObj . getElementsByTagName ( tagName ) ) ;
176+
177+ return new NodeListWrapper < NHtmlUnit . W3C . Dom . INode > ( WObj . getElementsByTagName ( tagName ) ) ;
170178 }
171179
172180// Generating method code for getProperty
@@ -190,7 +198,8 @@ public virtual bool LoadXML(string strXML)
190198// Generating method code for nodeFromID
191199 public virtual object NodeFromID ( string id )
192200 {
193- return WObj . nodeFromID ( id ) ;
201+ var arg = WObj . nodeFromID ( id ) ;
202+ return ObjectWrapper . CreateWrapper < object > ( arg ) ;
194203 }
195204
196205// Generating method code for setProperty
0 commit comments