//-----------------------------------------------------------------------
//
// Copyright (c) Beemway. All rights reserved.
//
//
// Microsoft Public License (Ms-PL http://opensource.org/licenses/ms-pl.html).
// Contributors may add their own copyright notice above.
//
//-----------------------------------------------------------------------
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml.Serialization;
namespace LinkedIn.Utility
{
///
/// A utilities class
///
public static class Utilities
{
///
/// Convert a string to a Byte Array in UTF8 encoding.
///
/// The xml string to convert.
/// A byte Array of the string.
public static byte[] StringToUTF8ByteArray(string value)
{
UTF8Encoding encoding = new UTF8Encoding();
byte[] byteArray = encoding.GetBytes(value);
return byteArray;
}
}
}