예제 #1
0
파일: Set.cs 프로젝트: zgpglee/ironpython3
        internal static FrozenSetCollection Make(object set)
        {
            if (set.GetType() == typeof(FrozenSetCollection))
            {
                return((FrozenSetCollection)set);
            }

            return(Make(SetStorage.GetFrozenItems(set)));
        }
예제 #2
0
        internal static FrozenSetCollection Make(PythonType /*!*/ cls, object set)
        {
            if (set is FrozenSetCollection fs && cls == TypeCache.FrozenSet)
            {
                // constructing frozen set from frozen set, we return the original
                return(fs);
            }

            return(Make(cls, SetStorage.GetFrozenItems(set)));
        }
예제 #3
0
파일: Set.cs 프로젝트: zzkongfu/ironpython3
 protected internal FrozenSetCollection(object set) : this(SetStorage.GetFrozenItems(set))
 {
 }