コード例 #1
0
        public static bool TryGetOrCreate(object x, object y, out ICopyer comparer)
        {
            if (Is.Type<IDictionary>(x, y))
            {
                comparer = Default;
                return true;
            }

            comparer = null;
            return false;
        }
コード例 #2
0
        public static bool TryGetOrCreate(object x, object y, out ICopyer comparer)
        {
            if (Is.IDictionaryOfTKeyTValue(x, y))
            {
                comparer = Default;
                return(true);
            }

            comparer = null;
            return(false);
        }
コード例 #3
0
ファイル: ListCopyer.cs プロジェクト: JohanLarsson/Gu.State
        public static bool TryGetOrCreate(object x, object y, out ICopyer comparer)
        {
            if (x is IList && y is IList)
            {
                comparer = Default;
                return true;
            }

            comparer = null;
            return false;
        }
コード例 #4
0
        public static bool TryGetOrCreate(object x, object y, out ICopyer comparer)
        {
            if (Is.IListsOfT(x, y))
            {
                comparer = Default;
                return(true);
            }

            comparer = null;
            return(false);
        }
コード例 #5
0
ファイル: ListCopyer.cs プロジェクト: ErikWahlstrom/Gu.State
        public static bool TryGetOrCreate(object x, object y, out ICopyer comparer)
        {
            if (x is IList && y is IList)
            {
                comparer = Default;
                return(true);
            }

            comparer = null;
            return(false);
        }