コード例 #1
0
 public HPos GetGeo()
 {
     HPos geo;
     try
     {
         geo = new HPos(JObject.Parse(this["geo"].ToString()));
     }
     catch (Exception e)
     {
         geo = null;
         Debug.WriteLine("{0} : Can not fetch the geo attribute", e.ToString());
     }
     return geo;
 }
コード例 #2
0
 public void SetGeo(HPos geo)
 {
     try
     {
         if (geo == null)
             this.Remove("geo");
         else
             this["geo"] = geo;
     }
     catch (Exception e)
     {
         Debug.WriteLine("{0} : Can not update the geo attribute", e.ToString());
     }
 }