Builds a proxy type using inheritance.
In order for this builder to work, target methods have to be either , or belong to an interface.
Inheritance: Spring.Proxy.AbstractProxyTypeBuilder
コード例 #1
0
        public void WithSealedClass()
        {
            InheritanceProxyTypeBuilder builder = (InheritanceProxyTypeBuilder)GetProxyBuilder();

            builder.TargetType = typeof(SealedClass);
            builder.BuildProxyType();
        }
コード例 #2
0
        public void WithSealedClass()
        {
            InheritanceProxyTypeBuilder builder = (InheritanceProxyTypeBuilder)GetProxyBuilder();

            builder.TargetType = typeof(SealedClass);
            Assert.Throws <ArgumentException>(() => builder.BuildProxyType());
        }