private static object GetValue <T>(DataViewSchema.Annotations annotations, int columnIndex) { T value = default; annotations.GetGetter <T>(columnIndex)(ref value); return(value); }
private static List <KeyValuePair <string, object> > BuildValues(DataViewSchema.Annotations annotations) { var result = new List <KeyValuePair <string, object> >(); foreach (var column in annotations.Schema) { var name = column.Name; var value = Utils.MarshalInvoke(GetValue <int>, column.Type.RawType, annotations, column.Index); result.Add(new KeyValuePair <string, object>(name, value)); } return(result); }
public AnnotationsDebuggerProxy(DataViewSchema.Annotations annotations) { Values = BuildValues(annotations); }