BitMaker.Miner.MinerFactoryConfigurationElement.TypeValidator C# (CSharp) 메소드

TypeValidator() 공개 정적인 메소드

public static TypeValidator ( object value ) : void
value object
리턴 void
        public static void TypeValidator(object value)
        {
            var type = (Type)value;
            if (!typeof(IMinerFactory).IsAssignableFrom(type))
                throw new ArgumentException("Type of miner factory must extend BitMaker.Miner.IMinerFactory.");
        }
MinerFactoryConfigurationElement