@@ -113,7 +113,7 @@ private object ListByLocation(List<PSPeeringLocation> peeringLocation, string s)
113
113
var newPsPeeringLocations = new List < PSPeeringLocationObject > ( ) ;
114
114
foreach ( var psPeeringLocation in peeringLocation )
115
115
{
116
- if ( this . Kind . Equals ( Constants . Exchange ) )
116
+ if ( this . Kind . Equals ( Constants . Exchange , StringComparison . OrdinalIgnoreCase ) )
117
117
{
118
118
if ( psPeeringLocation . Name . Equals ( s , StringComparison . OrdinalIgnoreCase ) )
119
119
{
@@ -125,7 +125,7 @@ private object ListByLocation(List<PSPeeringLocation> peeringLocation, string s)
125
125
}
126
126
}
127
127
128
- if ( this . Kind . Equals ( Constants . Direct ) )
128
+ if ( this . Kind . Equals ( Constants . Direct , StringComparison . OrdinalIgnoreCase ) )
129
129
{
130
130
if ( psPeeringLocation . Name . Equals ( s , StringComparison . OrdinalIgnoreCase ) )
131
131
{
@@ -158,7 +158,7 @@ private PSPeeringLocationObject GetByFacilityId(List<PSPeeringLocation> peeringL
158
158
{
159
159
foreach ( var psPeeringLocation in peeringLocation )
160
160
{
161
- if ( this . Kind . Equals ( Constants . Exchange ) )
161
+ if ( this . Kind . Equals ( Constants . Exchange , StringComparison . OrdinalIgnoreCase ) )
162
162
{
163
163
var numFacilities = psPeeringLocation . Exchange . PeeringFacilities . Count ;
164
164
for ( int i = 0 ; i < numFacilities ; i ++ )
@@ -170,7 +170,7 @@ private PSPeeringLocationObject GetByFacilityId(List<PSPeeringLocation> peeringL
170
170
}
171
171
}
172
172
173
- if ( this . Kind . Equals ( Constants . Direct ) )
173
+ if ( this . Kind . Equals ( Constants . Direct , StringComparison . OrdinalIgnoreCase ) )
174
174
{
175
175
var numFacilities = psPeeringLocation . Direct . PeeringFacilities . Count ;
176
176
for ( int i = 0 ; i < numFacilities ; i ++ )
@@ -191,7 +191,7 @@ private List<PSPeeringLocationObject> ConvertToPsObject(List<PSPeeringLocation>
191
191
var newPsPeeringLocations = new List < PSPeeringLocationObject > ( ) ;
192
192
foreach ( var location in peeringLocation )
193
193
{
194
- if ( location . Direct != null && location . Kind == Constants . Direct )
194
+ if ( location . Direct != null && location . Kind . Equals ( Constants . Direct , StringComparison . OrdinalIgnoreCase ) )
195
195
{
196
196
var numFacilities = location . Direct . PeeringFacilities . Count ;
197
197
for ( int i = 0 ; i < numFacilities ; i ++ )
@@ -200,7 +200,7 @@ private List<PSPeeringLocationObject> ConvertToPsObject(List<PSPeeringLocation>
200
200
}
201
201
}
202
202
203
- if ( location . Exchange != null && location . Kind == Constants . Exchange )
203
+ if ( location . Exchange != null && location . Kind . Equals ( Constants . Exchange , StringComparison . OrdinalIgnoreCase ) )
204
204
{
205
205
var numFacilities = location . Exchange . PeeringFacilities . Count ;
206
206
for ( int i = 0 ; i < numFacilities ; i ++ )
0 commit comments