コード例 #1
0
ファイル: Globals.cs プロジェクト: must/dotnet-corefx
 internal static object ScriptObjectJsonDeserialize(string json)
 {
     Debug.Assert(s_deserializeFunc != null);
     return(Globals.s_deserializeFunc(json));
 }
コード例 #2
0
        public Globals.MapPlotDataObject[] GetMapPlottingObjects(Globals.MapPlotRequestDataObject mapPlotFilter)
        {
            _presenter = new JSONServicePresenter(this);

            MapPlottingFilter = mapPlotFilter;

            _presenter.GetMapPlottingObjects();

            if (null != MapPlottingObjectsList)
            {
                Globals.MapPlotDataObject[] returnList = new Globals.MapPlotDataObject[MapPlottingObjectsList.Count];
                for (int i = 0; i < MapPlottingObjectsList.Count; i++)
                {
                    returnList[i] = new Globals.MapPlotDataObject()
                    {
                        Latitude = MapPlottingObjectsList[i].Latitude,
                        Longitude = MapPlottingObjectsList[i].Longitude,
                        Type = MapPlottingObjectsList[i].Type,
                        Description = MapPlottingObjectsList[i].Description,
                        Name = MapPlottingObjectsList[i].Name
                    };
                }

                return returnList;
            }
            else
                return null;
        }
コード例 #3
0
ファイル: Globals.cs プロジェクト: must/dotnet-corefx
 internal static string ScriptObjectJsonSerialize(object obj)
 {
     Debug.Assert(s_serializeFunc != null);
     return(Globals.s_serializeFunc(obj));
 }