コード例 #1
0
        private static object GetValue <T>(DataViewSchema.Annotations annotations, int columnIndex)
        {
            T value = default;

            annotations.GetGetter <T>(columnIndex)(ref value);
            return(value);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public AnnotationsDebuggerProxy(DataViewSchema.Annotations annotations)
 {
     Values = BuildValues(annotations);
 }