System.Xml.Serialization.SoapReflectionImporter.CreateElementAccessor C# (CSharp) Method

CreateElementAccessor() static private method

static private CreateElementAccessor ( TypeMapping mapping, string ns ) : ElementAccessor
mapping TypeMapping
ns string
return ElementAccessor
        static ElementAccessor CreateElementAccessor(TypeMapping mapping, string ns) {
            ElementAccessor element = new ElementAccessor();
            element.IsSoap = true;
            element.Name = mapping.TypeName; //XmlConvert.EncodeLocalName(name == null || name.Length == 0 ? mapping.TypeName : name);
            element.Namespace = ns;
            element.Mapping = mapping;
            return element;
        }