public XmlAspectMemberList(ClassAcessor acessor, string localName, bool mandatory)
            : base(acessor, localName, mandatory)
        {
            Type[] genericTypes = base.DataType.GetGenericArguments();
            if (genericTypes.Length != 1)
            {
                throw new ArgumentException("List serialization must be with IList of one generic type: " + DataType);
            }

            _Constructor = genericTypes[0].GetConstructor(Type.EmptyTypes);
            if (_Constructor == null)
            {
                throw new ArgumentException("List serialization requires that the components have a default constructor: " + genericTypes[0]);

            }

            this._Aspect = XmlAspect.GetInstance(genericTypes[0]);
        }
 public XmlAspectMemberComposite(ClassAcessor acessor, string localName, bool mandatory, XmlAspect aspect, ConstructorInfo constructor)
     : base(acessor, localName, mandatory)
 {
     this._Aspect = aspect;
     this._Constructor = constructor;
 }