当前位置: 首页>>代码示例>>C#>>正文


C# Test.List类代码示例

本文整理汇总了C#中Test.List的典型用法代码示例。如果您正苦于以下问题:C# Test.List类的具体用法?C# Test.List怎么用?C# Test.List使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Test.List类属于命名空间,在下文中一共展示了Test.List类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: getObjectResources

        public List<TaiNguyen> getObjectResources()
        {
            List<TaiNguyen> tainguyenLst = new List<TaiNguyen>();

            tainguyenLst.Add(LoaiTaiLieu_TaiLieu.I);
            return tainguyenLst;
        }
开发者ID:khanhdtn,项目名称:my-office-manager,代码行数:7,代码来源:PLPermissionRes.cs

示例2: DownloadCourseData

 public DownloadCourseData(string semester, string department, string courseNumber)
 {
     this.semester = semester;
     this.department = department;
     this.courseNumber = courseNumber;
     finalClasses = new List<UTAClass>();
 }
开发者ID:christophereyes,项目名称:CSE-3310,代码行数:7,代码来源:DownloadCourseData.cs

示例3: Main

        public static int Main(string[] args)
        {
            try
            {
                Console.SetBufferSize(Console.BufferWidth, 4096);
            }
            catch (Exception)
            {
                Console.WriteLine("Failed to grow scroll-back buffer");
            }

            // split mode and options
            var subArgs = new List<string>(args);
            var firstArg = string.Empty;
            if (subArgs.Count > 0)
            { 
                firstArg = subArgs[0];
                subArgs.RemoveAt(0);
            }

            // run whatever mode is choosen
            switch(firstArg)
            {
                case "client":
                    return TestClient.Execute(subArgs);
                case "server":
                    return TestServer.Execute(subArgs);
                case "--help":
                    PrintHelp();
                    return 0;
                default:
                    PrintHelp();
                    return -1;
            }
        }
开发者ID:nsuke,项目名称:thrift,代码行数:35,代码来源:Program.cs

示例4: ValidateCourses

 public ValidateCourses(string semester, string department, string classNumber)
 {
     this.semester = semester;
     this.number = classNumber;
     this.department = department;
     finalClasses = new List<UTAClass>();
 }
开发者ID:christophereyes,项目名称:CSE-3310,代码行数:7,代码来源:ValidateCourses.cs

示例5: BrowserControl

        public BrowserControl(List<UTASearchResult> cResults, string log)
        {
            logFile = log;
            Log("Browser Begin");
            classResults = cResults;
            Log("Creating Thread");

            Init();
        }
开发者ID:christophereyes,项目名称:CSE-3310,代码行数:9,代码来源:BrowserControl.cs

示例6: DepartmentListControl

 /// <summary>
 /// This is deprecated, this needs to be converted to using the new HttpRrquest method as WinForms really shouldnt be used in a web session.
 /// </summary>
 public DepartmentListControl()
 {
     deptNodes = new List<HtmlNode>();
     thrd = new Thread(new ThreadStart(
         delegate
         {
             Init();
             System.Windows.Forms.Application.Run(this);
         }));
     thrd.DisableComObjectEagerCleanup();
     // set thread to STA state before starting
     thrd.SetApartmentState(ApartmentState.STA);
     thrd.Start();
     thrd.Join();
 }
开发者ID:christophereyes,项目名称:CSE-3310,代码行数:18,代码来源:DepartmentListControl.cs

示例7: allTests

    public static void allTests(Ice.Communicator communicator)
    {
        string @ref = "communicator:default -p 12010";
        RemoteCommunicatorPrx com = RemoteCommunicatorPrxHelper.uncheckedCast(communicator.stringToProxy(@ref));

        List<TestCase> tests = new List<TestCase>();

        tests.Add(new InvocationHeartbeatTest(com));
        tests.Add(new InvocationHeartbeatOnHoldTest(com));
        tests.Add(new InvocationNoHeartbeatTest(com));
        tests.Add(new InvocationHeartbeatCloseOnIdleTest(com));

        tests.Add(new CloseOnIdleTest(com));
        tests.Add(new CloseOnInvocationTest(com));
        tests.Add(new CloseOnIdleAndInvocationTest(com));
        tests.Add(new ForcefulCloseOnIdleAndInvocationTest(com));

        tests.Add(new HeartbeatOnIdleTest(com));
        tests.Add(new HeartbeatAlwaysTest(com));
        tests.Add(new SetACMTest(com));

        foreach(TestCase test in tests)
        {
            test.init();
        }
        foreach(TestCase test in tests)
        {
            test.start();
        }
        foreach(TestCase test in tests)
        {
            test.join();
        }
        foreach(TestCase test in tests)
        {
            test.destroy();
        }

        Console.Out.Write("shutting down... ");
        Console.Out.Flush();
        com.shutdown();
        Console.WriteLine("ok");
    }
开发者ID:externl,项目名称:ice,代码行数:43,代码来源:AllTests.cs

示例8: GetList

        private static List<ImagesModel> GetList()
        {
            var list = new List<ImagesModel>();

            MysqlCon db = new MysqlCon();
            MySqlConnection conn = db.connect();

            MySqlCommand command = new MySqlCommand("select * from images where isdownload=0;", conn);
            MySqlDataReader reader = command.ExecuteReader();

            while (reader.Read())
            {
                list.Add(new ImagesModel { FileName = reader.GetString("filename"), Url = reader.GetString("img_url"), title = reader.GetString("title"), keyw = reader.GetString("keyw") });
            }

            reader.Close();
            db.disconnect(conn);

            return list;
        }
开发者ID:aserdaray,项目名称:Projects,代码行数:20,代码来源:Program.cs

示例9: ice_response

 public override void ice_response(List<float> r, List<float> o)
 {
     test(Ice.CollectionComparer.Equals(_i, o));
     test(Ice.CollectionComparer.Equals(_i, r));
     callback.called();
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:6,代码来源:TwowaysAMI.cs

示例10: AMI_MyClass_opLLongSI

 public AMI_MyClass_opLLongSI(List<long> i)
 {
     _i = i;
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:4,代码来源:TwowaysAMI.cs

示例11: AMI_MyClass_opLShortSI

 public AMI_MyClass_opLShortSI(List<short> i)
 {
     _i = i;
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:4,代码来源:TwowaysAMI.cs

示例12: AMI_MyClass_opLBoolSI

 public AMI_MyClass_opLBoolSI(List<bool> i)
 {
     _i = i;
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:4,代码来源:TwowaysAMI.cs

示例13: AMI_MyClass_opLCVPrxSI

 public AMI_MyClass_opLCVPrxSI(List<CVPrx> i)
 {
     _i = i;
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:4,代码来源:TwowaysAMI.cs

示例14: opLCVPrxS_async

 public override void opLCVPrxS_async(AMD_MyClass_opLCVPrxS cb, List<CVPrx> i, Ice.Current current)
 {
     cb.ice_response(i, i);
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:4,代码来源:MyClassAMDI.cs

示例15: AMI_MyClass_opLStructSDI

 public AMI_MyClass_opLStructSDI(List<SD> i)
 {
     _i = i;
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:4,代码来源:TwowaysAMI.cs


注:本文中的Test.List类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。