コード例 #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
ファイル: Set.cs プロジェクト: weimingtom/IronPythonMod
 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));
 }