/// <summary>
 /// Clones this instance and factor the object of <see cref="UAOOI.Configuration.Networking.Serialization.UATypeInfo"/>.
 /// </summary>
 /// <returns>An instance of the <see cref="UAOOI.Configuration.Networking.Serialization.UATypeInfo"/> derived from this instance.</returns>
 public static UAOOI.Configuration.Networking.Serialization.UATypeInfo UATypeInfoConvert(this UATypeInfo value)
 {
     UAOOI.Configuration.Networking.Serialization.UATypeInfo _newUATypeInfo = new UAOOI.Configuration.Networking.Serialization.UATypeInfo(value.BuiltInType.ToBuiltInType(),
                                                                                                                                          value.ValueRank,
                                                                                                                                          value.ArrayDimensions == null ? null : value.ArrayDimensions.Select <int, int>(x => x).ToArray <int>())
     {
         TypeName = value.TypeName == null ? null : new System.Xml.XmlQualifiedName(value.TypeName.Name, value.TypeName.Namespace),
     };
     return(_newUATypeInfo);
 }
        /// <summary>
        /// Performs an implicit conversion from <see cref="UAOOI.Configuration.Networking.Serialization.UATypeInfo"/> to <see cref="UATypeInfo"/>.
        /// </summary>
        /// <param name="typeInfo">The type information.</param>
        /// <returns>The result of the conversion.</returns>
        public static UATypeInfo UATypeInfoConvert(this UAOOI.Configuration.Networking.Serialization.UATypeInfo typeInfo)
        {
            UATypeInfo _newUATypeInfo = typeInfo == null ? null : new UATypeInfo()
            {
                ArrayDimensions = typeInfo.ArrayDimensions == null ? null : typeInfo.ArrayDimensions.Select <int, int>(x => x).ToArray <int>(),
                BuiltInType     = (BuiltInType)Convert.ToUInt16(typeInfo.BuiltInType),
                TypeName        = typeInfo.TypeName == null ? null : new System.Xml.XmlQualifiedName(typeInfo.TypeName.Name, typeInfo.TypeName.Namespace),
                ValueRank       = typeInfo.ValueRank
            };

            return(_newUATypeInfo);
        }