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


C# Score.ToString方法代码示例

本文整理汇总了C#中Score.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Score.ToString方法的具体用法?C# Score.ToString怎么用?C# Score.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Score的用法示例。


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

示例1: ToStringShouldReturnString

        public void ToStringShouldReturnString()
        {
            var score = new Score(this.playerName, this.points, this.time);
            var result = score.ToString();

            Assert.IsInstanceOfType(result, typeof(string));
        }
开发者ID:HQC-Team-Minesweeper-5,项目名称:Minesweeper,代码行数:7,代码来源:ScoreTests.cs

示例2: RenderTextBox

 protected void RenderTextBox(IGraphics g, float x, float y, float textHeight, string teamName, Score score)
 {
     var scoreString = score == null ? "" : score.ToString();
     this.RenderTextBox(g, x, y, textHeight, teamName, scoreString);
 }
开发者ID:mukhtiarlander,项目名称:git_demo_torit,代码行数:5,代码来源:EliminationDecider.cs

示例3: MeasureTextBox

 protected NodeMeasurement MeasureTextBox(IGraphics g, float textHeight, string teamName, Score score)
 {
     var scoreString = score == null ? "" : score.ToString();
     return this.MeasureTextBox(g, textHeight, teamName, scoreString);
 }
开发者ID:mukhtiarlander,项目名称:git_demo_torit,代码行数:5,代码来源:EliminationDecider.cs

示例4: OnLoadScoresFinished

		private void OnLoadScoresFinished (Score[] _scores, Score _localUserScore, string _error)
		{
			AddNewResult("Load leaderboard scores request finished.");
			AppendResult(string.Format("Error= {0}.", _error.GetPrintableString()));

			if (_scores != null)
			{
				int		_scoresCount	= _scores.Length;
				
				AppendResult(string.Format("Totally {0} score entries were loaded.", _scoresCount));
				AppendResult(string.Format("Local user score= {0}.", _localUserScore == null ? "NULL" : _localUserScore.ToString()));
				
				for (int _iter = 0; _iter < _scoresCount; _iter++)
				{
					AppendResult(string.Format("[Index {0}]: {1}.", _iter, _scores[_iter]));
				}
			}
		}
开发者ID:noahzaozao,项目名称:UnityAdmobAppEventDemo,代码行数:18,代码来源:GameServicesDemo.cs

示例5: ToStringShouldReturnStringInProperFormat

        public void ToStringShouldReturnStringInProperFormat()
        {
            var score = new Score(this.playerName, this.points, this.time);
            var result = score.ToString();
            var template = string.Format("{0}\t{1}\t{2}", this.playerName, this.points, this.time);

            Assert.AreEqual(result, template);
        }
开发者ID:HQC-Team-Minesweeper-5,项目名称:Minesweeper,代码行数:8,代码来源:ScoreTests.cs


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