FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapWindow5/src/MW5.Shared/ConvertibleBase.cs at develop · MapWindow/MapWindow5 · GitHub
MapWindow
/
MapWindow5
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
308
Code
Issues
14
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
ConvertibleBase.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
107 lines (89 loc) · 2.96 KB
Breadcrumbs
MapWindow5
/
src
/
MW5.Shared
/
ConvertibleBase.cs
Copy path
File metadata and controls
107 lines (89 loc) · 2.96 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Threading
.
Tasks
;
namespace
MW5
.
Shared
{
/// <summary>
/// Simple implementation of IConvertible as a workaround for issue with Syncfusion's GridGroupingControl
/// described here: http ://www.syncfusion.com/forums/54409/data-binding-custom-object-ilist-with-descendant-objects-in-the-list
/// Wouldn't it be better if Syncfusion guys added this check in their source, rather than force everybody to maim
/// their business objects?
/// </summary>
public
class
ConvertibleBase
:
IConvertible
{
TypeCode
IConvertible
.
GetTypeCode
(
)
{
throw
new
NotImplementedException
(
)
;
}
bool
IConvertible
.
ToBoolean
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
char
IConvertible
.
ToChar
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
sbyte
IConvertible
.
ToSByte
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
byte
IConvertible
.
ToByte
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
short
IConvertible
.
ToInt16
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
ushort
IConvertible
.
ToUInt16
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
int
IConvertible
.
ToInt32
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
uint
IConvertible
.
ToUInt32
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
long
IConvertible
.
ToInt64
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
ulong
IConvertible
.
ToUInt64
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
float
IConvertible
.
ToSingle
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
double
IConvertible
.
ToDouble
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
decimal
IConvertible
.
ToDecimal
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
DateTime
IConvertible
.
ToDateTime
(
IFormatProvider
provider
)
{
throw
new
NotImplementedException
(
)
;
}
public
virtual
string
ToString
(
IFormatProvider
provider
)
{
return
GetType
(
)
.
FullName
;
}
object
IConvertible
.
ToType
(
Type
conversionType
,
IFormatProvider
provider
)
{
if
(
conversionType
.
IsAssignableFrom
(
GetType
(
)
)
)
{
return
this
;
}
throw
new
NullReferenceException
(
"Can't convert to: "
+
conversionType
.
FullName
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL