示例#1
0
        public void Bad()
        {
            var sampleData = LookupA.LoadSome();

            if (sampleData == null)
            {
                Logger.Log("No data");
            }
            else
            {
                Logger.Log(string.IsNullOrEmpty(sampleData.SomeContent) ? "No content" : sampleData.SomeContent);
            }
        }
示例#2
0
        public void Bad()
        {
            var sampleData = LookupA.LoadSome();

            if (sampleData != null)
            {
                RepositoryA.Persist(sampleData);
            }
            else
            {
                Logger.Log("No data");
            }
        }
示例#3
0
        public void Bad()
        {
            var sampleDataA = LookupA.LoadSome();

            if (sampleDataA != null)
            {
                var sampleDataB = LookupB.LoadSome(sampleDataA);
                if (sampleDataB != null)
                {
                    Console.Write(sampleDataB);
                }
            }
        }
示例#4
0
        public void Worst()
        {
            var sampleData = LookupA.LoadSome();

            RepositoryA.Persist(sampleData);
        }
示例#5
0
        public void Worst()
        {
            var sampleData = LookupA.LoadSome();

            Logger.Log(sampleData.SomeContent);
        }