42 if (defaultNamespace ==
null)
44 defaultNamespace =
string.Empty;
174 if (dataType.Length > 0)
176 if (!
model.TypeDesc.IsPrimitive)
195 switch (
model.TypeDesc.Kind)
208 if (
model.TypeDesc.IsOptionalValue)
360 if (
mapping.IsFullyInitialized)
364 if (
model.TypeDesc.BaseTypeDesc !=
null)
410 if (
model.TypeDesc.IsValueType)
425 if (
mapping.BaseMapping ==
null)
489 text =
"http://www.w3.org/2001/XMLSchema";
535 if (dataType.Length > 0)
579 for (
int i = 0; i <
model.Constants.Length; i++)
624 for (
int i = 0; i <
array.Length; i++)
712 string name =
model.Name;
750 if (
a.SoapElement !=
null)
771 if (
a.SoapDefaultValue ==
null ||
a.SoapDefaultValue ==
DBNull.
Value)
778 return a.SoapDefaultValue;
786 string text =
Enum.
Format(
a.SoapDefaultValue.GetType(),
a.SoapDefaultValue,
"G").Replace(
",",
" ");
787 string text2 =
Enum.
Format(
a.SoapDefaultValue.GetType(),
a.SoapDefaultValue,
"D");
794 return a.SoapDefaultValue;
816 if (
a.SoapType !=
null &&
a.SoapType.TypeName.Length > 0)
818 text =
a.SoapType.TypeName;
820 if (
type.IsGenericType &&
text.Contains(
'{'))
831 if (!
text.Contains(
'{'))
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static readonly DBNull Value
static string Format(Type enumType, object value, string format)
static CultureInfo InvariantCulture
static string XmlInvalidEnumAttribute
static string XmlInvalidDefaultEnumValue
static string XmlInvalidTypeAttributes
static string Format(string resourceFormat, object p1)
static string XmlIllegalSoapAttribute
static string XmlNoSerializableMembers
static string XmlInvalidVoid
static string XmlUnsupportedSoapTypeKind
static string XmlInvalidSoapArray
static string XmlInvalidReturnPosition
static string XmlInvalidXsdDataType
static string XmlInvalidDefaultValue
static string XmlDataTypeMismatch
static string XmlRpcArrayOfValueTypes
static string XmlReflectionError
static string XmlRpcRefsInValueType
static string XmlRpcNestedValueType
static string XmlInvalidDataTypeUsage
static string XmlTypesDuplicate
static string XmlInvalidElementAttribute
static string XmlUdeclaredXsdType
static bool ElementsMatch(ElementAccessor[] a, ElementAccessor[] b)
static string EscapeQName(string name)
static string MakePascal(string identifier)
TypeModel GetTypeModel(Type type)
SoapAttributeFlags GetSoapFlags()
SoapTypeAttribute? SoapType
SoapEnumAttribute? SoapEnum
void SetArrayMappingType(ArrayMapping mapping)
XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool writeAccessors, bool validate, XmlMappingAccess access)
bool InitializeStructMembers(StructMapping mapping, StructModel model, RecursionLimiter limiter)
XmlTypeMapping ImportTypeMapping(Type type, string? defaultNamespace)
StructMapping CreateRootMapping()
StructMapping ImportStructLikeMapping(StructModel model, RecursionLimiter limiter)
TypeMapping GetTypeMapping(string typeName, string ns, TypeDesc typeDesc)
TypeMapping ImportTypeMapping(TypeModel model, RecursionLimiter limiter)
MemberMapping ImportMemberMapping(XmlReflectionMember xmlReflectionMember, string ns, XmlReflectionMember[] xmlReflectionMembers, XmlSchemaForm form, RecursionLimiter limiter)
static ElementAccessor CreateElementAccessor(TypeMapping mapping, string ns)
readonly NameTable _nullables
void IncludeTypes(ICustomAttributeProvider provider)
void ImportAccessorMapping(MemberMapping accessor, FieldModel model, SoapAttributes a, string ns, XmlSchemaForm form, RecursionLimiter limiter)
SoapReflectionImporter(SoapAttributeOverrides? attributeOverrides)
MembersMapping ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, string ns, bool hasWrapperElement, bool writeAccessors, bool validateWrapperElement, RecursionLimiter limiter)
XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool writeAccessors)
ConstantMapping ImportConstantMapping(ConstantModel model)
SoapAttributes GetAttributes(MemberInfo memberInfo)
readonly ModelScope _modelScope
NullableMapping CreateNullableMapping(TypeMapping baseMapping, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool writeAccessors, bool validate)
TypeMapping ImportTypeMapping(TypeModel model, string dataType, RecursionLimiter limiter)
readonly SoapAttributeOverrides _attributeOverrides
ArrayMapping ImportArrayLikeMapping(ArrayModel model, RecursionLimiter limiter)
readonly NameTable _types
PrimitiveMapping ImportPrimitiveMapping(PrimitiveModel model, string dataType)
object GetDefaultValue(TypeDesc fieldTypeDesc, SoapAttributes a)
SoapReflectionImporter(SoapAttributeOverrides? attributeOverrides, string? defaultNamespace)
void IncludeTypes(ICustomAttributeProvider provider, RecursionLimiter limiter)
XmlTypeMapping ImportTypeMapping(Type type)
readonly string _defaultNs
string XsdTypeName(Type type)
EnumMapping ImportEnumMapping(EnumModel model)
SoapReflectionImporter(string? defaultNamespace)
string XsdTypeName(Type type, SoapAttributes a, string name)
void IncludeType(Type type, RecursionLimiter limiter)
void IncludeType(Type type)
XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, XmlReflectionMember[] members)
Exception ReflectionException(string context, Exception e)
StructMapping GetRootMapping()
readonly TypeScope _typeScope
SoapAttributes GetAttributes(Type type)
MemberMapping ImportFieldMapping(FieldModel model, SoapAttributes a, string ns, RecursionLimiter limiter)
void AddTypeMapping(TypeMapping typeMapping)
TypeDesc GetTypeDesc(string name, string ns)
static string GenerateKey(Type type, XmlRootAttribute root, string ns)
static XmlReflectionMember FindSpecifiedMember(string memberName, XmlReflectionMember[] reflectionMembers)
static ? string EncodeLocalName(string? name)
DynamicallyAccessedMemberTypes