コード例 #1
0
    public WantsByte()
    {
        theInstance = new HasByte(this.address);

        // do something with theInstance.theByteArray[2] for example
        // Let's print all elements of the array
        Console.WriteLine(String.Join(",", theInstance.theByteArray.Select(o => o.ToString()).ToArray()));
    }
コード例 #2
0
 public void TestMethod1()
 {
     Mapper.CreateMap <HasByte, HasBool>();
     var hasByte = new HasByte()
     {
         Value = 1
     };
     var hasBool = Mapper.Map <HasByte, HasBool>(hasByte);
 }