示例#1
0
        /// <summary>
        /// Adds new text record.
        /// </summary>
        /// <param name="key">Key.</param>
        /// <param name="value">Value.</param>
        public BimilRecord AddRecord(string key, string value, BimilRecordFormat format)
        {
            var record = new BimilRecord(this.Document, key, value, format);

            this.Records.Add(record);
            return(record);
        }
示例#2
0
 internal BimilRecord(BimilDocument document, string key, string value, BimilRecordFormat format)
 {
     this.Document = document;
     this.Key      = new BimilValue(document)
     {
         Text = key
     };
     this.Value = new BimilValue(document)
     {
         Text = value
     };
     this.Format = format;
 }