This repository has been archived by the owner on May 21, 2022. It is now read-only.
/
index.html
411 lines (354 loc) · 18.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/Thrower/assets/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="/Thrower/assets/img/favicon.ico" type="image/x-icon">
<title>PommaLabs.Thrower - API - InvalidCastExceptionHandler Class</title>
<link href="/Thrower/assets/css/mermaid.css" rel="stylesheet">
<link href="/Thrower/assets/css/highlight.css" rel="stylesheet">
<link href="/Thrower/assets/css/bootstrap/bootstrap.css" rel="stylesheet">
<link href="/Thrower/assets/css/adminlte/AdminLTE.css" rel="stylesheet">
<link href="/Thrower/assets/css/theme/theme.css" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,400i,700,700i" rel="stylesheet">
<link href="/Thrower/assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="/Thrower/assets/css/override.css" rel="stylesheet">
<script src="/Thrower/assets/js/jquery-2.2.3.min.js"></script>
<script src="/Thrower/assets/js/bootstrap.min.js"></script>
<script src="/Thrower/assets/js/app.min.js"></script>
<script src="/Thrower/assets/js/highlight.pack.js"></script>
<script src="/Thrower/assets/js/jquery.slimscroll.min.js"></script>
<script src="/Thrower/assets/js/jquery.sticky-kit.min.js"></script>
<script src="/Thrower/assets/js/mermaid.min.js"></script>
<!--[if lt IE 9]>
<script src="/Thrower/assets/js/html5shiv.min.js"></script>
<script src="/Thrower/assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition wyam layout-boxed ">
<div class="top-banner"></div>
<div class="wrapper with-container">
<!-- Header -->
<header class="main-header">
<a href="/Thrower/" class="logo">
<span>PommaLabs.Thrower</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle visible-xs-block" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle side menu</span>
<i class="fa fa-chevron-circle-right"></i>
</a>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle side menu</span>
<i class="fa fa-chevron-circle-down"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/Thrower/about">About This Project</a></li>
<li><a href="/Thrower/docs">Docs</a></li>
<li><a href="/Thrower/blog">Blog</a></li>
<li class="active"><a href="/Thrower/api">API</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- Navbar Right Menu -->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar ">
<section class="infobar" data-spy="affix" data-offset-top="60" data-offset-bottom="200">
<div id="infobar-headings"><h6>On This Page</h6><p><a href="#Summary">Summary</a></p>
<p><a href="#Syntax">Syntax</a></p>
<p><a href="#Methods">Methods</a></p>
<hr class="infobar-hidden">
</div>
</section>
<section class="sidebar">
<script src="/Thrower/assets/js/lunr.min.js"></script>
<script src="/Thrower/assets/js/searchIndex.js"></script>
<div class="sidebar-form">
<div class="input-group">
<input type="text" name="search" id="search" class="form-control" placeholder="Search Types...">
<span class="input-group-btn">
<button class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
<div id="search-results">
</div>
<script>
function runSearch(query){
$("#search-results").empty();
if( query.length < 2 ){
return;
}
var results = searchModule.search("*" + query + "*");
var listHtml = "<ul class='sidebar-menu'>";
listHtml += "<li class='header'>Type Results</li>";
if(results.length == 0 ){
listHtml += "<li>No results found</li>";
} else {
for(var i = 0; i < results.length; ++i){
var res = results[i];
listHtml += "<li><a href='" + res.url + "'>" + htmlEscape(res.title) + "</a></li>";
}
}
listHtml += "</ul>";
$("#search-results").append(listHtml);
}
$(document).ready(function(){
$("#search").on('input propertychange paste', function() {
runSearch($("#search").val());
});
});
function htmlEscape(html) {
return document.createElement('div')
.appendChild(document.createTextNode(html))
.parentNode
.innerHTML;
}
</script>
<hr>
<ul class="sidebar-menu">
<li class="header">Namespace</li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers">PommaLabs<wbr>.Thrower<wbr>.ExceptionHandlers</a></li>
<li role="separator" class="divider"></li>
<li class="header">Class Types</li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/ArgumentExceptionHandler">Argument<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/ArgumentNullExceptionHandler">Argument<wbr>Null<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/ArgumentOutOfRangeExceptionHandler">Argument<wbr>Out<wbr>Of<wbr>Range<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/IndexOutOfRangeExceptionHandler">Index<wbr>Out<wbr>Of<wbr>Range<wbr>Exception<wbr>Handler</a></li>
<li class="selected"><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/InvalidCastExceptionHandler">Invalid<wbr>Cast<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/InvalidOperationExceptionHandler">Invalid<wbr>Operation<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/NotSupportedExceptionHandler">Not<wbr>Supported<wbr>Exception<wbr>Handler</a></li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/ObjectDisposedExceptionHandler">Object<wbr>Disposed<wbr>Exception<wbr>Handler</a></li>
</ul>
</section>
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<h1>Invalid<wbr>Cast<wbr>Exception<wbr>Handler <small>Class</small></h1>
</section>
<section class="content">
<h1 id="Summary">Summary</h1>
<div class="lead">
Handler for <code class="cs">System.InvalidCastException</code>.
</div>
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<dl class="dl-horizontal">
<dt>Namespace</dt>
<dd><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers">PommaLabs<wbr>.Thrower<wbr>.ExceptionHandlers</a></dd>
<dt>Base Types</dt>
<dd>
<ul class="list-unstyled">
<li>object</li>
<li><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></li>
</ul>
</dd>
</dl>
</div>
<div class="col-md-6">
<div class="mermaid">
graph TD
Base0["GenericExceptionHandler<TException>"]-->Type
click Base0 "/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1"
Base1["object"]-->Base0
Type["InvalidCastExceptionHandler"]
class Type type-node
</div>
</div>
</div>
</div>
</div>
<h1 id="Syntax">Syntax</h1>
<pre><code>public sealed class InvalidCastExceptionHandler : GenericExceptionHandler<InvalidCastException></code></pre>
<h1 id="Methods">Methods</h1>
<div class="box">
<div class="box-body no-padding table-responsive">
<table class="table table-striped table-hover three-cols">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
<th>Summary</th>
</tr>
</thead>
<tbody><tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/450E048F">If<wbr>(bool, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws <span name="TException" class="typeparamref">TException</span> if given condition is true.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/1E4CEB37">IfIsAssignableFrom<wbr>(object, <wbr>Type, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if an
instance of given type can be assigned to specified object.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/E4241B1E">IfIsAssignableFrom<wbr><TType><wbr><wbr>(object, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if an
instance of given type can be assigned to specified object.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/B916FF3E">IfIsInstanceOf<wbr>(object, <wbr>Type, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if specified
object has given type.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/191AA603">IfIsInstanceOf<wbr><TType><wbr><wbr>(object, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if specified
object has given type.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/2EE44122">If<wbr>Is<wbr>Not<wbr>Assignable<wbr>From<wbr>(object, <wbr>Type, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if an
instance of given type cannot be assigned to specified object.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/7B6F01F4">If<wbr>Is<wbr>Not<wbr>Assignable<wbr>From<wbr><TType><wbr><wbr>(object, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if an
instance of given type cannot be assigned to specified object.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/84449C94">IfIsNotInstanceOf<wbr>(object, <wbr>Type, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if specified
object has not given type.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/AE0A8B36">IfIsNotInstanceOf<wbr><TType><wbr><wbr>(object, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws an exception of type <span name="TException" class="typeparamref">TException</span> if and only if specified
object has not given type.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1/23C7D757">IfNot<wbr>(bool, <wbr>string)<wbr></a></td>
<td>void</td>
<td>
<div>
Throws <span name="TException" class="typeparamref">TException</span> if given condition is false.
</div>
<div><small><em>Inherited from <a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/GenericExceptionHandler_1">Generic<wbr>Exception<wbr>Handler<wbr><TException><wbr></a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/Thrower/api/PommaLabs.Thrower.ExceptionHandlers/InvalidCastExceptionHandler/5E0508E0">NewWithMessage<wbr>(string)<wbr></a></td>
<td>InvalidCastException</td>
<td>
<div>
Creates an exception with given message.
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer class="main-footer">
</footer>
</div>
<div class="wrapper bottom-wrapper">
<footer class="bottom-footer">
Generated by <a href="https://wyam.io">Wyam</a>
</footer>
</div>
<a href="javascript:" id="return-to-top"><i class="fa fa-chevron-up"></i></a>
<script>
// Close the sidebar if we select an anchor link
$(".main-sidebar a[href^='#']:not('.expand')").click(function(){
$(document.body).removeClass('sidebar-open');
});
$(document).load(function() {
mermaid.initialize(
{
flowchart:
{
htmlLabels: false,
useMaxWidth:false
}
});
mermaid.init(undefined, ".mermaid")
$('svg').addClass('img-responsive');
$('pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
});
hljs.initHighlightingOnLoad();
// Back to top
$(window).scroll(function() {
if ($(this).scrollTop() >= 200) { // If page is scrolled more than 50px
$('#return-to-top').fadeIn(1000); // Fade in the arrow
} else {
$('#return-to-top').fadeOut(1000); // Else fade out the arrow
}
});
$('#return-to-top').click(function() { // When arrow is clicked
$('body,html').animate({
scrollTop : 0 // Scroll to top of body
}, 500);
});
</script>
</body></html>