diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/SimpleDataViewImplementation.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/SimpleDataViewImplementation.cs index 93c01674aa..72d2bc4ff7 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/SimpleDataViewImplementation.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/SimpleDataViewImplementation.cs @@ -146,6 +146,13 @@ public InputObject(bool label, string text) private sealed class InputObjectDataView : IDataView { private readonly IEnumerable _data; + public IEnumerable Data + { + get + { + return _data; + } + } public DataViewSchema Schema { get; } public bool CanShuffle => false; @@ -249,7 +256,7 @@ public Cursor(InputObjectDataView parent, bool wantsLabel, { Schema = parent.Schema; _position = -1; - _enumerator = parent._data.GetEnumerator(); + _enumerator = parent.Data.GetEnumerator(); _getters = new Delegate[] { wantsLabel ?