SerializableDictionary<TKey,TValue> Class

Summary
Represents a serializable collection of keys and values.
Syntax
C#
C++/CLI
[SerializableAttribute()] 
[XmlRootAttribute("custom")] 
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IXmlSerializable 
[XmlRootAttribute("custom")] 
[SerializableAttribute()] 
generic<typename _TKey_> 
generic<typename _TValue_> 
public ref class SerializableDictionary : public System.Collections.Generic.Dictionary<TKey,TValue>, System.Collections.Generic.ICollection<KeyValuePair<TKey,TValue>>, System.Collections.Generic.IDictionary<TKey,TValue>, System.Collections.Generic.IEnumerable<KeyValuePair<TKey,TValue>>, System.Collections.Generic.IReadOnlyCollection<KeyValuePair<TKey,TValue>>, System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable   

Type Parameters

TKey
The type of the key.

TValue
The type of the value.

Example
C#
using Leadtools; 
using Leadtools.Logging; 
using Leadtools.Logging.LoggingChannel; 
 
 
 
// 
// The log should already be configured with the correct logging channels. 
// 
 
private void Log(Logger log) 
{ 
   LogEntry entry = new LogEntry(); 
 
   entry.LogType = LogType.Information; 
   entry.Message = "This is an information message"; 
   entry.CustomInformation.Add("Custom", "My Custom Information"); 
   entry.Source = "TestSource"; 
   log.Log(entry); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Logging Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.