diff --git a/src/componentsBase/JsonDataSourceSchema.cs b/src/componentsBase/JsonDataSourceSchema.cs index 8c1d9c1a..e0913b89 100644 --- a/src/componentsBase/JsonDataSourceSchema.cs +++ b/src/componentsBase/JsonDataSourceSchema.cs @@ -903,7 +903,7 @@ public void Commit() FieldTypes = _buildingFieldsTypes.ToArray(); FieldDataIntents = _buildingFieldsDataIntents.ToArray(); FieldGetters = new Func[_buildingFields.Count]; - TypedFieldGetters = new Func[_buildingFields.Count]; + TypedFieldGetters = new Delegate[_buildingFields.Count]; for (int i = 0; i < _buildingFields.Count; i++) { FieldNames[i] = _buildingFields[i].Name; diff --git a/tests/IgniteUI.Blazor.Lite.IntegrationTests/ComboDataTest.cs b/tests/IgniteUI.Blazor.Lite.IntegrationTests/ComboDataTest.cs index 0cc56367..8357bd60 100644 --- a/tests/IgniteUI.Blazor.Lite.IntegrationTests/ComboDataTest.cs +++ b/tests/IgniteUI.Blazor.Lite.IntegrationTests/ComboDataTest.cs @@ -95,9 +95,6 @@ await Page.WaitForFunctionAsync( } [Test] - [Ignore("Item types with public primitive-typed fields crash schema creation: JsonDataSourceSchema.Commit " + - "stores the typed field getters in a Func[] and throws ArrayTypeMismatchException " + - "(TypedPropertyGetters uses Delegate[]). Enable once the field getter array type is fixed.")] public async Task NestedPublicFields_TransferToClient() { await OpenScenarioAsync("nested-field-shipments", expectedCount: 2); diff --git a/tests/IgniteUI.Blazor.Tests/UnmarshalledDataChannelTests.cs b/tests/IgniteUI.Blazor.Tests/UnmarshalledDataChannelTests.cs index 58f3865f..fcb42d5d 100644 --- a/tests/IgniteUI.Blazor.Tests/UnmarshalledDataChannelTests.cs +++ b/tests/IgniteUI.Blazor.Tests/UnmarshalledDataChannelTests.cs @@ -83,9 +83,7 @@ public void PrimitiveStrings_TransferAsPrimitiveColumn() Assert.Equal(["alpha", "beta", "gamma"], values.StringValues.Take(3)); } - [Fact(Skip = "Item types with public primitive-typed fields crash schema creation: JsonDataSourceSchema.Commit " + - "stores the typed field getters in a Func[] and throws ArrayTypeMismatchException " + - "(TypedPropertyGetters uses Delegate[]). Enable once the field getter array type is fixed.")] + [Fact] public void NestedPublicFields_TransferAsColumns() { var create = RenderScenario("nested-field-shipments");