-
Notifications
You must be signed in to change notification settings - Fork 2
/
Extensions.cs
28 lines (27 loc) · 986 Bytes
/
Extensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//-----------------------------------------------------------------------
// <copyright file="Extensions.cs" company="Studio A&T s.r.l.">
// Copyright (c) Studio A&T s.r.l. All rights reserved.
// </copyright>
// <author>Nicogis</author>
//-----------------------------------------------------------------------
namespace Studioat.ArcGis.Soe.Rest
{
using System.Text;
using ESRI.ArcGIS.SOESupport;
/// <summary>
/// class for extension
/// </summary>
internal static class Extensions
{
/// <summary>
/// return the json in byte UTF8 from a object jsonObject
/// </summary>
/// <param name="jsonObject">object json Object</param>
/// <returns>json in byte UTF8</returns>
internal static byte[] JsonByte(this JsonObject jsonObject)
{
string json = jsonObject.ToJson();
return Encoding.UTF8.GetBytes(json);
}
}
}