コード例 #1
0
 public MapInfo(XmlElement iXml)
 {
     this.m_Name  = iXml.GetAttribute("Name");
     this.m_Num   = ByteType.FromString(iXml.GetAttribute("Num"));
     this.m_XSize = IntegerType.FromString(iXml.GetAttribute("XSize"));
     this.m_YSize = IntegerType.FromString(iXml.GetAttribute("YSize"));
 }
コード例 #2
0
ファイル: ByteTypeTests.cs プロジェクト: saucecontrol/corefx
 public void FromString_ThrowsOverflowException(string value)
 {
     Assert.Throws <OverflowException>(() => ByteType.FromString(value));
 }
コード例 #3
0
 public HashKey(string Key)
 {
     this.m_Key = ByteType.FromString("&H" + Key);
 }
コード例 #4
0
ファイル: ByteTypeTests.cs プロジェクト: saucecontrol/corefx
 public void FromString_ThrowsInvalidCastException(string value)
 {
     Assert.Throws <InvalidCastException>(() => ByteType.FromString(value));
 }
コード例 #5
0
ファイル: ByteTypeTests.cs プロジェクト: saucecontrol/corefx
 public void FromString_NotSupported(string value, byte expected)
 {
     Assert.Throws <InvalidCastException>(() => ByteType.FromString(value));
 }
コード例 #6
0
ファイル: ByteTypeTests.cs プロジェクト: saucecontrol/corefx
 public void FromString(string value, byte expected)
 {
     Assert.Equal(expected, ByteType.FromString(value));
 }
コード例 #7
0
 public HashKey(string Key)
 {
     this.m_Key = ByteType.FromString(string.Concat("&H", Key));
 }
コード例 #8
0
 public ClsDragon(XmlElement xmlInfo)
 {
     this.m_GroupID    = IntegerType.FromString("&H" + xmlInfo.GetAttribute("GroupID"));
     this.m_TerrainID  = ByteType.FromString("&H" + xmlInfo.GetAttribute("Terrain"));
     this.m_AltitudeID = ByteType.FromString("&H" + xmlInfo.GetAttribute("Alt"));
 }