Example #1
0
		//public SC_Word Serialize() {
		//	return new SC_Word(Record);
		//}
		#endregion
		#region public SC_Word Serialize();
		public SC_Word Serialize() {
			SO_Word[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_Word[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_Word(
							parent_ref_.fields_.IDWord,
							parent_ref_.fields_.DeleteThisTestField
						);
				}

				Current = _current;
			}

			SC_Word _serialize_out = new SC_Word();
			_serialize_out.SO_Word = _serialisableobject;
			return _serialize_out;
		}
Example #2
0
		public void Open(SO_Word[] serialisableobject_in) {
			DataTable _datatable = new DataTable();
			_datatable.Columns.Add(new DataColumn("codProfissao", typeof(int)));
			_datatable.Columns.Add(new DataColumn("descProfissao", typeof(string)));

			DataRow _datarow;
			for (int i = 0; i < serialisableobject_in.Length; i++) {
				_datarow = _datatable.NewRow();
				_datarow["IDWord"] = serialisableobject_in[i].IDWord;
				_datarow["DeleteThisTestField"] = serialisableobject_in[i].DeleteThisTestField;

				_datatable.Rows.Add(_datarow);
			}

			Open(_datatable);
		}
Example #3
0
		public void Deserialize(SO_Word Word_in) {
			mainAggregate.Fields = Word_in;
		}
Example #4
0
		void clrObject() {
			fields_ = new SO_Word();
		}