Beispiel #1
0
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType != typeof(MarkupExtension))
            {
                throw new ArgumentException();
            }

            ComplexType instance = value as ComplexType;

            if (null == instance)
            {
                throw new ArgumentException();
            }

            ComplexTypeExtension3 extension = new ComplexTypeExtension3();

            return(extension);
        }
Beispiel #2
0
 public ClassWithNestedMEWithCstrArgsExtension2(int intData, ComplexTypeExtension3 compData)
 {
     IntData = intData;
     ComplexTypeInstanceForCstrArgs = compData;
     ComplexTypeInstance            = new ComplexType();
 }