8
8
namespace System . Linq . Dynamic
9
9
{
10
10
/// <summary>
11
- /// Provides a base class for dynamic objects created by using the <see cref="DynamicQueryable.Select(IQueryable,string,object[])"/>
12
- /// method. For internal use only.
11
+ /// A DynamicClass as Replacement for creating classes via Reflection Emit, wich is not supported in WinRT
13
12
/// </summary>
14
- public class DynamicClass : DynamicObject
13
+ public class DynamicObjectClass : DynamicObject
15
14
{
16
15
Dictionary < string , object > _properties = new Dictionary < string , object > ( ) ;
17
16
18
- public DynamicClass ( KeyValuePair < string , object > _1 )
17
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 )
19
18
{
20
19
_properties . Add ( _1 . Key , _1 . Value ) ;
21
20
}
22
21
23
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 )
22
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 )
24
23
{
25
24
_properties . Add ( _1 . Key , _1 . Value ) ;
26
25
_properties . Add ( _2 . Key , _2 . Value ) ;
27
26
}
28
27
29
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 )
28
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 )
30
29
{
31
30
_properties . Add ( _1 . Key , _1 . Value ) ;
32
31
_properties . Add ( _2 . Key , _2 . Value ) ;
33
32
_properties . Add ( _3 . Key , _3 . Value ) ;
34
33
}
35
34
36
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 )
35
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 )
37
36
{
38
37
_properties . Add ( _1 . Key , _1 . Value ) ;
39
38
_properties . Add ( _2 . Key , _2 . Value ) ;
40
39
_properties . Add ( _3 . Key , _3 . Value ) ;
41
40
_properties . Add ( _4 . Key , _4 . Value ) ;
42
41
}
43
42
44
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 )
43
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 )
45
44
{
46
45
_properties . Add ( _1 . Key , _1 . Value ) ;
47
46
_properties . Add ( _2 . Key , _2 . Value ) ;
@@ -50,7 +49,7 @@ public DynamicClass(KeyValuePair<string, object> _1, KeyValuePair<string, object
50
49
_properties . Add ( _5 . Key , _5 . Value ) ;
51
50
}
52
51
53
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 )
52
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 )
54
53
{
55
54
_properties . Add ( _1 . Key , _1 . Value ) ;
56
55
_properties . Add ( _2 . Key , _2 . Value ) ;
@@ -60,7 +59,7 @@ public DynamicClass(KeyValuePair<string, object> _1, KeyValuePair<string, object
60
59
_properties . Add ( _6 . Key , _6 . Value ) ;
61
60
}
62
61
63
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 )
62
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 )
64
63
{
65
64
_properties . Add ( _1 . Key , _1 . Value ) ;
66
65
_properties . Add ( _2 . Key , _2 . Value ) ;
@@ -71,7 +70,7 @@ public DynamicClass(KeyValuePair<string, object> _1, KeyValuePair<string, object
71
70
_properties . Add ( _7 . Key , _7 . Value ) ;
72
71
}
73
72
74
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 , KeyValuePair < string , object > _8 )
73
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 , KeyValuePair < string , object > _8 )
75
74
{
76
75
_properties . Add ( _1 . Key , _1 . Value ) ;
77
76
_properties . Add ( _2 . Key , _2 . Value ) ;
@@ -83,7 +82,7 @@ public DynamicClass(KeyValuePair<string, object> _1, KeyValuePair<string, object
83
82
_properties . Add ( _8 . Key , _8 . Value ) ;
84
83
}
85
84
86
- public DynamicClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 , KeyValuePair < string , object > _8 , KeyValuePair < string , object > _9 )
85
+ public DynamicObjectClass ( KeyValuePair < string , object > _1 , KeyValuePair < string , object > _2 , KeyValuePair < string , object > _3 , KeyValuePair < string , object > _4 , KeyValuePair < string , object > _5 , KeyValuePair < string , object > _6 , KeyValuePair < string , object > _7 , KeyValuePair < string , object > _8 , KeyValuePair < string , object > _9 )
87
86
{
88
87
_properties . Add ( _1 . Key , _1 . Value ) ;
89
88
_properties . Add ( _2 . Key , _2 . Value ) ;
@@ -159,7 +158,7 @@ public override bool Equals(object obj)
159
158
{
160
159
if ( object . ReferenceEquals ( this , obj ) ) return true ;
161
160
162
- var other = obj as DynamicClass ;
161
+ var other = obj as DynamicObjectClass ;
163
162
164
163
if ( other == null ) return false ;
165
164
0 commit comments