コード例 #1
0
    public static void Main()
    {
        Spy    spy    = new Spy();
        string result = spy.AnalyzeAcessModifiers(nameof(Hacker));

        Console.WriteLine(result);
    }
コード例 #2
0
    public static void Main()
    {
        var spy    = new Spy();
        var result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result);
    }
コード例 #3
0
ファイル: StartUp.cs プロジェクト: svetlyoek/OOP
    private static void Main()
    {
        var    spy    = new Spy();
        string result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result.ToString());
    }
コード例 #4
0
        static void Main()
        {
            Spy    spy    = new Spy();
            string result = spy.AnalyzeAcessModifiers(typeof(Hacker).FullName);

            Console.WriteLine(result);
        }
コード例 #5
0
    static void Main(string[] args)
    {
        Spy    spy    = new Spy();
        string result = spy.AnalyzeAcessModifiers("System.Text.StringBuilder");

        Console.WriteLine(result);
    }
コード例 #6
0
ファイル: StartUp.cs プロジェクト: varbanov88/SoftUniOOP
    private static void HighQualityMistakes()
    {
        Spy spy    = new Spy();
        var result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result);
    }
コード例 #7
0
    static void Main(string[] args)
    {
        Spy    spy    = new Spy();
        string result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result);
    }
コード例 #8
0
    static void Main() // 100/100 - Important - see Spy class
    {
        Spy    spy    = new Spy();
        string result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result);
    }
コード例 #9
0
    public static void Main()
    {
        Spy    spy           = new Spy();
        string investigation = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(investigation);
    }
コード例 #10
0
    static void Main(string[] args)
    {
        Spy    spy       = new Spy();
        var    className = typeof(Hacker).Name;
        string result    = spy.AnalyzeAcessModifiers(className);

        Console.WriteLine(result);
    }
コード例 #11
0
ファイル: Program.cs プロジェクト: ilkerBuguner/CSharp-OOP
    public static void Main(string[] args)
    {
        Spy spy = new Spy();

        var res = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(res);
    }
コード例 #12
0
ファイル: Program.cs プロジェクト: BiserB/Educational
    static void Main()
    {
        Spy spy = new Spy();

        // string result = spy.StealFieldInfo("Hacker", "username", "password");

        string result = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(result);
    }
コード例 #13
0
    public static void Main()
    {
        Spy spy = new Spy();

        var result  = spy.StealFieldInfo("Hacker", "username", "password");
        var result1 = spy.AnalyzeAcessModifiers("Hacker");
        var result2 = spy.RevealPrivateMethods("Hacker");
        var result3 = spy.CollectGettersAndSetters("Hacker");

        Console.WriteLine(result + Environment.NewLine);
        Console.WriteLine(result1 + Environment.NewLine);
        Console.WriteLine(result2 + Environment.NewLine);
        Console.WriteLine(result3 + Environment.NewLine);
    }
コード例 #14
0
ファイル: Run.cs プロジェクト: karayotov/OOP-Advanced
    static void Main()
    {
        Spy spy = new Spy();

        string result = spy.StealFieldInfo("Hacker", "username", "password"); // P01

        result = spy.AnalyzeAcessModifiers("Hacker");                         // P02

        result = spy.RevealPrivateMethods("Hacker");                          // P03

        result = spy.CollectGettersAndSetters("Hacker");                      // P04


        Console.WriteLine(result);
    }
コード例 #15
0
    public static void Main()
    {
        var spy          = new Spy();
        var stealingInfo = spy.StealFieldInfo("Hacker", "username", "password");

        Console.WriteLine(stealingInfo + Environment.NewLine + new string('*', 50));
        var analyzeHacker = spy.AnalyzeAcessModifiers("Hacker");

        Console.WriteLine(analyzeHacker + Environment.NewLine + new string('*', 50));
        var privateMethodsInfo = spy.RevealPrivateMethods("Hacker");

        Console.WriteLine(privateMethodsInfo + Environment.NewLine + new string('*', 50));
        var gettersAndSetters = spy.CollectGettersAndSetters("Hacker");

        Console.WriteLine(gettersAndSetters + Environment.NewLine + new string('*', 50));
    }
コード例 #16
0
ファイル: Startup.cs プロジェクト: conteo1987/Visual-studio
    public static void Main(string[] args)
    {
        var spy = new Spy();
        // 1. Stealer
        var result = spy.StealFieldInfo(typeof(Hacker).FullName, "username", "password");

        // 2. High Quality Mistakes
        result = spy.AnalyzeAcessModifiers(typeof(Hacker).FullName);

        //// 3. Mission Private Impossible
        //result = spy.RevealPrivateMethods(typeof(Hacker).FullName);

        //// 4. Collector
        //result = spy.CollectGettersAndSetters(typeof(Hacker).FullName);

        Console.WriteLine(result);
    }
コード例 #17
0
        static void Main()
        {
            var spy = new Spy();

            Console.WriteLine(spy.AnalyzeAcessModifiers("Hacker"));
        }