You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return new WildcardArrayWrapper(firstPropertyValue);
@@ -273,7 +273,7 @@ public static class PSFluentObjectValidation
273
273
int count = GetCount(firstPropertyValue);
274
274
if (index < 0 || index >= count)
275
275
throw new InvalidOperationException(String.Format("Array index [{0}] is out of bounds for property '{1}' (length: {2})", index, basePropertyName, count));
276
-
276
+
277
277
if (firstPropertyValue is Array)
278
278
{
279
279
Array firstArray = (Array)firstPropertyValue;
@@ -286,7 +286,7 @@ public static class PSFluentObjectValidation
286
286
}
287
287
}
288
288
}
289
-
289
+
290
290
if (arrayObject is IList)
291
291
{
292
292
IList list = (IList)arrayObject;
@@ -297,18 +297,18 @@ public static class PSFluentObjectValidation
297
297
throw new InvalidOperationException(String.Format("Array element [{0}] is null", i));
298
298
if (!HasProperty(element, basePropertyName))
299
299
throw new InvalidOperationException(String.Format("Array element [{0}] does not have property '{1}'", i, basePropertyName));
return new WildcardArrayWrapper(firstPropertyValue);
@@ -319,7 +319,7 @@ public static class PSFluentObjectValidation
319
319
int count = GetCount(firstPropertyValue);
320
320
if (index < 0 || index >= count)
321
321
throw new InvalidOperationException(String.Format("Array index [{0}] is out of bounds for property '{1}' (length: {2})", index, basePropertyName, count));
322
-
322
+
323
323
if (firstPropertyValue is Array)
324
324
{
325
325
Array firstArray = (Array)firstPropertyValue;
@@ -332,7 +332,7 @@ public static class PSFluentObjectValidation
332
332
}
333
333
}
334
334
}
335
-
335
+
336
336
throw new InvalidOperationException(String.Format("Cannot process wildcard array indexing on type {0}", arrayObject.GetType().Name));
0 commit comments