Example #1
0
 public JsonHelpersUnitTest()
 {
     SomeAInstance      = new SomeA("Some A", new byte[] { 0x32, 0x30, 0x32, 0x30 }, new SomeB(42));
     _someAAsPrettyJson =
         "{" + Environment.NewLine +
         "  \"S\": \"Some A\"," + Environment.NewLine +
         "  \"A\": \"MjAyMA==\"," + Environment.NewLine +
         "  \"B\": {" + Environment.NewLine +
         "    \"I\": 42" + Environment.NewLine +
         "  }" + Environment.NewLine +
         "}";
 }
        public string ConvertBToA()
        {
            SomeA someConvertB = someB;

            return("B: " + someConvertB.MethodA());
        }
 public static string MethodA(this SomeA someA)
 {
     return("I'm in extension for SomeA type!");
 }