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

IncludeType() public method

public IncludeType ( Type type ) : void
type System.Type
return void
        public void IncludeType(Type type) {
            ImportTypeMapping(modelScope.GetTypeModel(type));
        }

Usage Example

Example #1
0
		XmlTypeMapping GetEncodedTypeMapping ()
		{
			SoapReflectionImporter sri = new SoapReflectionImporter ();
			sri.IncludeType (typeof(UknTestPart));
			sri.IncludeType (typeof(AnotherTestPart));
			sri.IncludeType (typeof(DblStringContainer));
			return sri.ImportTypeMapping (typeof(Test));
		}