public TypedObject (object obj, string svalue, XmlSchemaDatatype xsdtype) {
this.ovalue = obj;
this.svalue = svalue;
this.xsdtype = xsdtype;
if (xsdtype.Variety == XmlSchemaDatatypeVariety.List ||
xsdtype is Datatype_base64Binary ||
xsdtype is Datatype_hexBinary) {
this.isList = true;
this.dim = ((Array)obj).Length;
}
}