@@ -165,7 +165,7 @@ public void Open(Stream stream)
165165 {
166166 if ( stream == null )
167167 {
168- throw new ArgumentNullException ( "stream" , "Cannot be null." ) ;
168+ throw new ArgumentNullException ( "stream" ) ;
169169 }
170170
171171 string path = StreamHelper . WriteToTemporaryFile ( stream ) ;
@@ -197,12 +197,12 @@ public void Open(Stream stream, GhostscriptVersionInfo versionInfo, bool dllFrom
197197 {
198198 if ( stream == null )
199199 {
200- throw new ArgumentNullException ( "stream" , "Cannot be null." ) ;
200+ throw new ArgumentNullException ( "stream" ) ;
201201 }
202202
203203 if ( versionInfo == null )
204204 {
205- throw new ArgumentNullException ( "versionInfo" , "Cannot be null." ) ;
205+ throw new ArgumentNullException ( "versionInfo" ) ;
206206 }
207207
208208 string path = StreamHelper . WriteToTemporaryFile ( stream ) ;
@@ -225,7 +225,7 @@ public void Open(string path, GhostscriptVersionInfo versionInfo, bool dllFromMe
225225
226226 if ( versionInfo == null )
227227 {
228- throw new ArgumentNullException ( "versionInfo" , "Cannot be null." ) ;
228+ throw new ArgumentNullException ( "versionInfo" ) ;
229229 }
230230
231231 this . Close ( ) ;
@@ -239,43 +239,43 @@ public void Open(string path, GhostscriptVersionInfo versionInfo, bool dllFromMe
239239
240240 #endregion
241241
242- #region Open - stream, gsDll
242+ #region Open - stream, library
243243
244- public void Open ( Stream stream , byte [ ] gsDll )
244+ public void Open ( Stream stream , byte [ ] library )
245245 {
246246 if ( stream == null )
247247 {
248- throw new ArgumentNullException ( "stream" , "Cannot be null." ) ;
248+ throw new ArgumentNullException ( "stream" ) ;
249249 }
250250
251251 string path = StreamHelper . WriteToTemporaryFile ( stream ) ;
252252
253253 _fileCleanupHelper . Add ( path ) ;
254254
255- this . Open ( path , gsDll ) ;
255+ this . Open ( path , library ) ;
256256 }
257257
258258 #endregion
259259
260- #region Open - path, gsDll
260+ #region Open - path, library
261261
262- public void Open ( string path , byte [ ] gsDll )
262+ public void Open ( string path , byte [ ] library )
263263 {
264264 if ( ! File . Exists ( path ) )
265265 {
266266 throw new FileNotFoundException ( "Could not find input file." , path ) ;
267267 }
268268
269- if ( gsDll == null )
269+ if ( library == null )
270270 {
271- throw new ArgumentNullException ( "gsDll" , "Cannot be null. ") ;
271+ throw new ArgumentNullException ( "library " ) ;
272272 }
273273
274274 this . Close ( ) ;
275275
276276 _filePath = path ;
277277
278- _interpreter = new GhostscriptInterpreter ( gsDll ) ;
278+ _interpreter = new GhostscriptInterpreter ( library ) ;
279279
280280 this . Open ( ) ;
281281 }
@@ -288,7 +288,7 @@ public void Open(GhostscriptVersionInfo versionInfo, bool dllFromMemory)
288288 {
289289 if ( versionInfo == null )
290290 {
291- throw new ArgumentNullException ( "versionInfo" , "Cannot be null." ) ;
291+ throw new ArgumentNullException ( "versionInfo" ) ;
292292 }
293293
294294 this . Close ( ) ;
@@ -302,20 +302,20 @@ public void Open(GhostscriptVersionInfo versionInfo, bool dllFromMemory)
302302
303303 #endregion
304304
305- #region Open - gsDll
305+ #region Open - library
306306
307- public void Open ( byte [ ] gsDll )
307+ public void Open ( byte [ ] library )
308308 {
309- if ( gsDll == null )
309+ if ( library == null )
310310 {
311- throw new ArgumentNullException ( "gsDll" , "Cannot be null. ") ;
311+ throw new ArgumentNullException ( "library " ) ;
312312 }
313313
314314 this . Close ( ) ;
315315
316316 _filePath = string . Empty ;
317317
318- _interpreter = new GhostscriptInterpreter ( gsDll ) ;
318+ _interpreter = new GhostscriptInterpreter ( library ) ;
319319
320320 this . Open ( ) ;
321321 }
0 commit comments