Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsDuckType C# (CSharp) 메소드

IsDuckType() 공개 메소드

public IsDuckType ( IType type ) : bool
type IType
리턴 bool
        public bool IsDuckType(IType type)
        {
            if (type == null) throw new ArgumentNullException("type");
            if (type == DuckType) return true;
            if (type == ObjectType && _context.Parameters.Ducky) return true;
            return KnowsQuackFu(type);
        }
TypeSystemServices