fork download
  1. using System.Collections.Generic;
  2.  
  3. public class TestClass{
  4. private List<byte> hogeList = new List<byte>();
  5. public void TestMethod( object hoge )
  6. {
  7. hogeList.Add( (byte)((int)hoge) );
  8.  
  9. //2012-01-02T23:06+09:00
  10. //2012-01-02T23:11+09:00 に多少コメントを修正
  11.  
  12. //System.Convert.ToByte(object)を使ったほうがいいだろうか?
  13. //ずらずら分岐並べたくないからね(未検証)
  14. }
  15. public static void Main(){
  16. TestClass test = new TestClass();
  17. test.TestMethod(5);
  18. }
  19. }
Success #stdin #stdout 0.03s 36640KB
stdin
Standard input is empty
stdout
Standard output is empty