1
1
/* Copyright 2010-present MongoDB Inc.
2
- *
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
2
+ *
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
15
16
16
using System ;
17
17
using System . Collections . Generic ;
@@ -55,8 +55,8 @@ public void Select_ReadOnlyDictionary_item_with_string_using_call_to_get_item_sh
55
55
var collection = GetCollection ( linqProvider ) ;
56
56
var x = Expression . Parameter ( typeof ( C ) , "x" ) ;
57
57
var body = Expression . Call (
58
- Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ! ) ,
59
- typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) ! . GetGetMethod ( ) ,
58
+ Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ) ,
59
+ typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) . GetGetMethod ( ) ,
60
60
Expression . Constant ( "a" ) ) ;
61
61
var selector = Expression . Lambda < Func < C , int > > ( body , [ x ] ) ;
62
62
@@ -81,9 +81,9 @@ public void Select_ReadOnlyDictionary_item_with_string_using_MakeIndex_should_wo
81
81
var collection = GetCollection ( linqProvider ) ;
82
82
var x = Expression . Parameter ( typeof ( C ) , "x" ) ;
83
83
var body = Expression . MakeIndex (
84
- Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ! ) ,
84
+ Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ) ,
85
85
typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) ,
86
- new Expression [ ] { Expression . Constant ( "a" ) } ) ;
86
+ [ Expression . Constant ( "a" ) ] ) ;
87
87
var selector = Expression . Lambda < Func < C , int > > ( body , [ x ] ) ;
88
88
89
89
var queryable = collection . AsQueryable ( )
@@ -130,8 +130,8 @@ public void Where_ReadOnlyDictionary_item_with_string_using_call_to_get_item_sho
130
130
var x = Expression . Parameter ( typeof ( C ) , "x" ) ;
131
131
var body = Expression . Equal (
132
132
Expression . Call (
133
- Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ! ) ,
134
- typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) ! . GetGetMethod ( ) ,
133
+ Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ) ,
134
+ typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) . GetGetMethod ( ) ,
135
135
Expression . Constant ( "a" ) ) ,
136
136
Expression . Constant ( 1 ) ) ;
137
137
var predicate = Expression . Lambda < Func < C , bool > > ( body , [ x ] ) ;
@@ -155,9 +155,9 @@ public void Where_ReadOnlyDictionary_item_with_string_using_MakeIndex_should_wor
155
155
var x = Expression . Parameter ( typeof ( C ) , "x" ) ;
156
156
var body = Expression . Equal (
157
157
Expression . MakeIndex (
158
- Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ! ) ,
159
- typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) ! ,
160
- new Expression [ ] { Expression . Constant ( "a" ) } ) ,
158
+ Expression . Property ( x , typeof ( C ) . GetProperty ( "Dictionary" ) ) ,
159
+ typeof ( IReadOnlyDictionary < string , int > ) . GetProperty ( "Item" ) ,
160
+ [ Expression . Constant ( "a" ) ] ) ,
161
161
Expression . Constant ( 1 ) ) ;
162
162
var predicate = Expression . Lambda < Func < C , bool > > ( body , [ x ] ) ;
163
163
0 commit comments