示例#1
0
文件: Set.cs 项目: rudimk/dlr-dotnet
        public static bool operator <=(SetCollection self, object other)
        {
            ISet s = other as ISet;

            if (s == null)
            {
                throw PythonOps.TypeError("can only compare to a set");
            }

            return(SetHelpers.IsSubset(self, s, false));
        }
示例#2
0
 public object IsSubset(object s)
 {
     return(SetHelpers.IsSubset(this, s));
 }
示例#3
0
文件: Set.cs 项目: rudimk/dlr-dotnet
 public bool issubset(object set)
 {
     return(SetHelpers.IsSubset(this, set));
 }