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


C# TYPE类代码示例

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


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

示例1: AchievementObject

 public AchievementObject (string id, string initVal, string goalVal, double currProgress) {
   this.id = id;
   this.initValString = initVal;
   this.goalValString = goalVal;
   this.type = TYPE.STRING;
   //this.currValString = currVal;
 }
开发者ID:spilist,项目名称:shoong,代码行数:7,代码来源:AchievementObject.cs

示例2: Tile

 public Tile(int x, int y, TYPE type, Char c)
 {
     _x = x;
     _y = y;
     this.type = type;
     SetCompare(c);
 }
开发者ID:CheesusRex,项目名称:DarkReigns,代码行数:7,代码来源:Tile.cs

示例3: createStamp

        public static String createStamp(TYPE type)
        {
            String descriptor = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss");

            switch (type) {
                case TYPE.DEBUG:
                    descriptor += " [DEBUG]: ";
                    break;

                case TYPE.ERROR:
                    descriptor += " [ERROR]: ";
                    break;

                case TYPE.FATAL:
                    descriptor += " [FATAL]: ";
                    break;

                case TYPE.INFO:
                    descriptor += " [INFO]: ";
                    break;

                case TYPE.WARN:
                    descriptor += " [WARN]: ";
                    break;

                default:
                    descriptor = null;
                    break;
            }
            return descriptor;
        }
开发者ID:BenDol,项目名称:RocketLauncher,代码行数:31,代码来源:Logger.cs

示例4: LexerToken

 public LexerToken(string rawString, int startCharIdx, int endCharIdx)
 {
     rawWord = RawWord.new_FromString(rawString);
     this.startCharIdx = startCharIdx;
     this.endCharIdx = endCharIdx;
     tokenType = TYPE.UNCLASSIFIED;
 }
开发者ID:FizzyP,项目名称:Prose,代码行数:7,代码来源:LexerToken.cs

示例5: SetScreenPosType

 /// <summary>
 /// 動態改變TYPE
 /// </summary>
 /// <param name="type">Type.</param>
 public void SetScreenPosType(Camera _cam,KZScreenPos.TYPE type)
 {
     _type = type;
     SetCamera(_cam);
     SetVector3 ();
     SetScreenPosition(1,1);
 }
开发者ID:kuanyingchou,项目名称:fgj14,代码行数:11,代码来源:KZScreenPos.cs

示例6: Usterki

        public Usterki(int carid, TYPE Tryb)
        {
            InitializeComponent();

            this.CARID = carid;
            this.TrybPracy = Tryb;
        }
开发者ID:pawlo57,项目名称:Warsztat,代码行数:7,代码来源:Usterki.cs

示例7: Spell

 public Spell(int e_d, int s_r, int s_a, TYPE t)
 {
     effect_damage = e_d;
     spell_range = s_r;
     spell_area = s_a;
     type = t;
 }
开发者ID:KMontag42,项目名称:z42,代码行数:7,代码来源:Spell.cs

示例8: GetCommentOfStore

 public async void GetCommentOfStore(TYPEGET typeGet, TYPE type=0)
 {
     string lastId = "";
     int storeId = MediateClass.KiotVM.SelectedStore.StoreId;
     if (typeGet == TYPEGET.MORE)
     {
         if (CommentLstOfStore.Count != 0)
         {
             if (type == TYPE.OLD)
                 lastId = CommentLstOfStore.Min(x => x.Id).ToString();
             else
                 lastId = CommentLstOfStore.Max(x => x.Id).ToString();
         }
     }
     else
         lastId = "-1";
     IDictionary<string, string> param = new Dictionary<string, string>
     {
         {"storeId" , storeId.ToString()},
         {"commentId" , lastId},
         {"type" , type.ToString()}
     };
     if(lastId != "")
         await SendData(typeGet, type, param);
 } 
开发者ID:monpham2310,项目名称:PayBay,代码行数:25,代码来源:CommentViewModel.cs

示例9: LoadMoreStore

 public async void LoadMoreStore(TYPEGET typeGet,TYPE type=0)
 {
     string lastId = "";
     int marketId = MediateClass.MarketVM.SelectedMarket.MarketId;
     if (typeGet == TYPEGET.MORE)
     {
         if (KiosList.Count != 0)
         {
             if (type == TYPE.OLD)
                 lastId = KiosList.Min(x => x.StoreId).ToString();
             else
                 lastId = KiosList.Max(x => x.StoreId).ToString();
         }
     }
     else
         lastId = "-1";
           
     IDictionary<string, string> param = new Dictionary<string, string>
     {
         {"marketId", marketId.ToString()},
         {"storeId" , lastId},
         {"type" , type.ToString()}
     };
     if(lastId != "")
         await SendData(typeGet, type, param);
 }
开发者ID:monpham2310,项目名称:PayBay,代码行数:26,代码来源:KiosViewModel.cs

示例10: Uzytkownik

        public Uzytkownik(string title, string cmdName, TYPE typ)
        {
            InitializeComponent();

            this.Text = title;
            cmdDodaj.Text = cmdName;

            TrybPracy = typ;
            if (typ == TYPE.NEW)
            {
                comboBox1.SelectedIndex = 0;
            }
            else if (typ == TYPE.VIEW)
            {
                cmdDodaj.Visible = false; cmdAnuluj.Text = "Zamknij";
                comboBox1.Enabled = false;
                txtHaslo.Enabled = false; txtPowtorzHaslo.Enabled = false;

                lstPriv.Enabled = false;
            }
            else if (typ == TYPE.EDIT)
            {
                cmdDodaj.Text = "Zapisz"; cmdAnuluj.Text = "Anuluj";
                txtLogin.Enabled = false; txtImie.Enabled = false;
                txtNazwisko.Enabled = false;

            }
        }
开发者ID:pawlo57,项目名称:Warsztat,代码行数:28,代码来源:Uzytkownik.cs

示例11: AddMessage

        public void AddMessage(string title, string description, TYPE quest,float time)
        {
            CancelInvoke("DisablePanel");
            //AudioSource.PlayClipAtPoint(Clip, Camera.main.transform.position);
            this.gameObject.SetActive(true);

            if (quest == TYPE.Error)
            {
                BackgroundImage.color = ErrorColor;
            }
            if (quest == TYPE.Warning)
            {
                BackgroundImage.color = WarningColor;
            }
            if (quest == TYPE.Access)
            {
                BackgroundImage.color = AccessColor;
            }
            if (quest == TYPE.System)
            {
                BackgroundImage.color = SystemColor;
            }

            Title.text = title;
            Description.text = description;
            Invoke("DisablePanel",time);
        }
开发者ID:gjrfytn,项目名称:planet-survival,代码行数:27,代码来源:Notification.cs

示例12: Start

	void Start()
	{
		if (type==TYPE.RGBDF && rigidBody == null)
		{
			type=TYPE.TRSPOS;
		
		}
	}
开发者ID:TowerSay,项目名称:Tower,代码行数:8,代码来源:AimMove.cs

示例13: Start

 void Start()
 {
     playerType = TYPE.NONE;
     isShieldUp = false;
     health = 10;
     Damage = 1;
     actionReady = false;
 }
开发者ID:Nephet,项目名称:SI_Phygital,代码行数:8,代码来源:Player.cs

示例14: clear

 public void clear()
 {
     table	= "";
     name	= "";
     type	= TYPE.TEXT;
     isKey	= false;
     isName	= false;
 }
开发者ID:keremkoseoglu,项目名称:COMIG,代码行数:8,代码来源:ComigField.cs

示例15: ProtectorSpell

 public ProtectorSpell(int e_d, int s_r, int s_a, TYPE t)
 {
     effect_damage = e_d;
     spell_range = s_r;
     spell_area = s_a;
     type = t;
     effect = "protector_effect";
 }
开发者ID:KMontag42,项目名称:z42,代码行数:8,代码来源:ProtectorSpell.cs


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