public static void AddMixedDataRecord(this MultipleRecords multipleRecords, string name, Record data)
 {
     if (!string.IsNullOrWhiteSpace(name) && data != null)
     {
         multipleRecords.Records.Add(name, data);
     }
 }
        //public static double GetDoubleValue(this MixedDataRecord mixedDataRecord, int indexNumber)
        //{
        //    return double.Parse(mixedDataRecord.GetStringValue(indexNumber), CultureInfo.CurrentCulture);
        //}

        //public static int GetIntegerValue(this MixedDataRecord mixedDataRecord, int indexNumber)
        //{
        //    return int.Parse(mixedDataRecord.GetStringValue(indexNumber), CultureInfo.CurrentCulture);
        //}

        public static string GetStringValue(this MultipleRecords multipleRecords, string recordName)
        {
            if (multipleRecords.Records.TryGetValue(recordName, out Record record))
            {
                return(record.GetStringValue());
            }
            return(null);
        }
 public static MultipleRecords GetMultipleRecord(this MultipleRecords multipleRecords, string recordName)
 {
     if (multipleRecords.Records.TryGetValue(recordName, out Record record))
     {
         return(record.Data as MultipleRecords);
     }
     return(null);
 }
 public static IList <RecordData> GetMixedDataRecord(this MultipleRecords multipleRecords, string recordName)
 {
     if (multipleRecords.Records.TryGetValue(recordName, out Record record))
     {
         return(((MixedDataRecord)record.Data).Records);
     }
     return(null);
 }
        public static void AddMixedDataRecord(this MultipleRecords multipleRecords, string recordName, object recordData)
        {
            var abilitiesRecord = new Record();

            abilitiesRecord.Data = recordData as RecordData;
            abilitiesRecord.Name = recordName;
            multipleRecords.Records.Add(recordName, abilitiesRecord);
        }
 public static MixedDataRecord GetMixedDataRecordTemp(this MultipleRecords multipleRecords, string recordName)
 {
     if (multipleRecords.Records.TryGetValue(recordName, out Record record))
     {
         return(record.Data as MixedDataRecord);
     }
     return(null);
 }
        public static void AddSingleDataRecord(this MultipleRecords multipleRecords, string name, string data)
        {
            if (string.IsNullOrWhiteSpace(name) || string.IsNullOrWhiteSpace(data))
            {
                return;
            }

            var singleDataRecord = GetSingleDataRecord(name, data);

            multipleRecords.Records.Add(name, singleDataRecord);
        }