⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class1.cs

📁 这是.net2005学习不可缺少的教程
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace CompCS
{
   
        public class StringComponent
        {
            private string[] stringSet;

            public StringComponent()
            {
                stringSet = new string[] {
			            "C# String 0",
			            "C# String 1",
			             "C# String 2",
                        "C# String 3",
                        "C# String 4",
                        "C# String 5",
                        "C# String 6",
                        "C# String 7"
   		               };
           }
            public string GetString(int index)
            {
                if ((index < 0) || (index >= stringSet.Length))
                {
                    throw new IndexOutOfRangeException();
                }
                return stringSet[index];

            }
            public int Count
            {
                get { return stringSet.Length; }
            }

        }

    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -