Exemple #1
0
 static ParameterSample[] ToParameterSampleArray(object[] value)
 {
     ParameterSample[] result = new ParameterSample[value.Length];
     for (int i = 0; i < result.Length; ++i)
     {
         result[i] = (ParameterSample)value[i];
     }
     return(result);
 }
Exemple #2
0
        public static ParameterSample DeserializeParameterSample(BinaryReader br, Document doc)
        {
            ParameterSample result = new ParameterSample();

            result.Name   = (string)doc.DeserializeQuery(br);
            result.Count  = DeserializeInt32(br);
            result.Values = (float[])doc.DeserializeQuery(br);
            return(result);
        }