• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TYPE类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: TuneCanSpwan

 public TuneCanSpwan(float x, float y, float z, float v, TYPE type, int hitTime)
 {
     mDeparture = new Vector3(x, y, z) + GameObject.FindGameObjectWithTag("Player").transform.position;
     mVelocity = v;
     mType = type;
     mHitTime = hitTime;
     mDepartureTime = Math.Max(0,(int)(hitTime - ((mDeparture - GameObject.FindGameObjectWithTag("Player").transform.position).magnitude - USER_SCALE) * 1000 / v));
 }
开发者ID:youdiaozi,项目名称:AudioSword,代码行数:8,代码来源:TuneCanSpwan.cs


示例17: GenerateInfo

    public void GenerateInfo(GameObject mainObj)
    {
        this.id = idAc++;
        this.obj = mainObj;
        this.nameOrig = this.obj.name;

        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_panel)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_panel.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.PANEL;
            this.classType = GUIGenerator_Macros.type_image;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_image;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_image)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_image.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.IMAGE;
            this.classType = GUIGenerator_Macros.type_image;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_image;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_text)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_text.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.TEXT;
            this.classType = GUIGenerator_Macros.type_text;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_text;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_button)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_button.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.BUTTON;
            this.classType = GUIGenerator_Macros.type_button;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_button;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_toggle)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_toggle.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.TOGGLE;
            this.classType = GUIGenerator_Macros.type_toggle;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_toggle;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_input)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_input.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.INPUT_FIELD;
            this.classType = GUIGenerator_Macros.type_input;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_input;
        } else{
        //if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_other)){
            this.name = this.nameOrig;

            this.type = GUIGenerator_Elem_Base.TYPE.OTHER;
            this.classType = GUIGenerator_Macros.type_other;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_other;
        }

        UpdateVariableNames();
    }
开发者ID:mariojgpinto,项目名称:GUIGenerator,代码行数:58,代码来源:GUIGenerator_Classes.cs


示例18: FINDKind

        public FINDKind(TYPE tryb)
        {
            InitializeComponent();

            this.TrybPracy = tryb;

            LoadCategories();
            LoadMagazyny();
        }
开发者ID:pawlo57,项目名称:Warsztat,代码行数:9,代码来源:NEWKind.cs


示例19: Letter

 public Letter(string MinVal, string MajVal, TYPE Type)
 {
     //
     // TODO: Add constructor logic here
     //
     minVal	= MinVal;
     majVal	= MajVal;
     type	= Type;
 }
开发者ID:keremkoseoglu,项目名称:Dialector,代码行数:9,代码来源:Letter.cs


示例20: GetRangeAverage

 public float GetRangeAverage(TYPE t)
 {
     float count = 0.0f;
     float range = musicType[t].end - musicType[t].start;
     int start = musicType [t].start;
     for(int i=start; i < range+start; i++)
     {
         count += freqData [i];
     }
     return (count / range);
 }
开发者ID:gushrodah,项目名称:Visualizor,代码行数:11,代码来源:Manager.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Tab类代码示例发布时间:2022-05-24
下一篇:
C# TValue类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap