T
CSharpTest.Net
XmlConfiguration<T> Class
Members  See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace : XmlConfiguration<T> Class

Glossary Item Box

This is basically a big hack on the whole configuration system, it's purpose is to avoid the entire thing. Where argument T is any [XmlSerializable] object this class can deserialize it from the configuration file. It looks for an xsd either embeded into typeof(T).Assembly or in the local filesystem. The Xsd must be named typeof(T).FullName + ".xsd" to be found by this class. If found validation will occur durring the deserialization process and an exception of type XmlException() will be raised on errors. Optionally, you can directly set the schema via the static XmlSchema property.

Syntax

Visual Basic (Declaration) 
Public Class XmlConfiguration(Of T) 
   Inherits System.Configuration.ConfigurationSection
C# 
public class XmlConfiguration<T> : System.Configuration.ConfigurationSection 

Type Parameters

T

Inheritance Hierarchy

System.Object
   System.Configuration.ConfigurationElement
      System.Configuration.ConfigurationSection
         CSharpTest.Net.Utils.XmlConfiguration<T>

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys