The MIT License (MIT) Copyright (c) 2008 Peter Dolkens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 public static XmlElement Rename(this XmlElement element, String name)
 {
     return(DDRIT.Rename(element, name));
 }
 public static String GetPath(this XmlElement element)
 {
     return(DDRIT.GetPath(element));
 }
 public static Guid?ReadGuid(this BinaryReader reader, Boolean nullable = true)
 {
     return(DDRIT.ReadGuid(reader, nullable));
 }
 public static Byte[] ReadAllBytes(this Stream stream)
 {
     return(DDRIT.ReadAllBytes(stream));
 }
 /// <summary>
 /// Read a Fixed-Length string from the stream
 /// </summary>
 /// <param name="binaryReader"></param>
 /// <param name="stringLength">Size of the String</param>
 /// <returns></returns>
 public static String ReadFString(this BinaryReader binaryReader, Int32 stringLength)
 {
     return(DDRIT.ReadFString(binaryReader, stringLength));
 }
 /// <summary>
 /// Read a NULL-Terminated string from the stream
 /// </summary>
 /// <param name="binaryReader"></param>
 /// <returns></returns>
 public static String ReadCString(this BinaryReader binaryReader)
 {
     return(DDRIT.ReadCString(binaryReader));
 }
 /// <summary>
 /// Read a Length-prefixed string from the stream
 /// </summary>
 /// <param name="binaryReader"></param>
 /// <param name="byteLength">Size of the Length representation</param>
 /// <returns></returns>
 public static String ReadPString(this BinaryReader binaryReader, StringSizeEnum byteLength = StringSizeEnum.Int32)
 {
     return(DDRIT.ReadPString(binaryReader, byteLength));
 }