コード例 #1
0
        protected Type GetAdapterType(object adaptee)
        {
            if (adaptee == null)
            {
                throw new ArgumentNullException("adaptee");
            }

            return(implementation.GetAdapterType(adaptee, this.role));
        }
コード例 #2
0
        public void GetAdapterType_default_adapter_factory_composed_of_all()
        {
            IAdapterFactory fc = AdapterFactory.Default;

            Assert.Null(fc.GetAdapterType(typeof(IProperties), "StreamingSource"));
        }