public ValueTable(ТаблицаЗначений value) { if (value == null) { throw new System.ArgumentNullException("value"); } this.Column = new DataTableColumn[value.Колонки.Count]; for (int i = 0; i < value.Колонки.Count; i++) { DataTableColumn columnSOAP = new DataTableColumn(); columnSOAP.Name = value.Колонки[i].Имя; this.Column[i] = columnSOAP; } this.Row = new DataTableRow[value.Count]; for (int i = 0; i < value.Count; i++) { DataTableRow rowSOAP = new DataTableRow(); rowSOAP.Property = new ValueBase[value.Колонки.Count]; for (int j = 0; j < value.Колонки.Count; j++) { КолонкаКоллекцииЗначений column = value.Колонки[j]; ValueBase property = ValueBase.From(((dynamic)value[i]).GetByColumn(column)); property.Name = column.Имя; rowSOAP.Property[j] = property; } this.Row[i] = rowSOAP; } }
public PostObject_Settings(Структура допСвойства, ежимЗаписиДокумента режимЗаписи, ежимПроведенияДокумента режимПроведения, bool режимЗагрузки) { this.AdditionalProperties = ValueBase.From(допСвойства) as ValueStruct; this.ExchangeLoadMode = режимЗагрузки; this.ExchangeLoadModeSpecified = режимЗагрузки; this.DocumentWriteMode = режимЗаписи.ToString(); this.DocumentPostingMode = режимПроведения.ToString(); }
public ValueArray(IList value) { this.Item = new ValueBase[value.Count]; for (int i = 0; i < value.Count; i++) { this.Item[i] = ValueBase.From(value[i]); } }
public ValueStruct(Структура value) { if (value == null) { throw new System.ArgumentNullException("value"); } this.Property = new ValueBase[value.Count]; int i = 0; foreach (var keyValue in value) { ValueBase property = ValueBase.From(keyValue.Value); property.Name = keyValue.Key; this.Property[i] = property; i++; } }
private void AddRowsSOAP(ДеревоЗначений tree, DataTableRow[] rowsSOAP, КоллекцияСтрокДереваЗначений rows) { for (int i = 0; i < rows.Count; i++) { СтрокаДереваЗначений currentRow = rows[i]; DataTableRow rowSOAP = new DataTableRow(); rowSOAP.Property = new ValueBase[tree.Колонки.Count]; for (int j = 0; j < tree.Колонки.Count; j++) { string columnName = tree.Колонки[j].Имя; ValueBase property = ValueBase.From(((dynamic)currentRow)[columnName]); property.Name = columnName; rowSOAP.Property[j] = property; } rowsSOAP[i] = rowSOAP; if (currentRow.Строки().Count > 0) { rowSOAP.Row = new DataTableRow[currentRow.Строки().Count]; this.AddRowsSOAP(tree, rowSOAP.Row, currentRow.Строки()); } } }
public ValueKeyValue(KeyValuePair <object, object> value) { this.Key = ValueBase.From(value.Key); this.Value = ValueBase.From(value.Value); }
public ValueKeyValue(object key, object value) { this.Key = ValueBase.From(key); this.Value = ValueBase.From(value); }
public ValueKeyValue(DictionaryEntry value) { this.Key = ValueBase.From(value.Key); this.Value = ValueBase.From(value.Value); }
public ValueBoundary(System.ValueType value, string type) { this.Value = ValueBase.From(value); this.Type = type; }
public ValueStorage(ХранилищеЗначения value) { this.Data = ValueBase.From(value.Получить()); }