Mega Code Archive

 
Categories / C# / Data Types
 

Convert Int To Plugwise Log Hex

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PlugwiseLib.UTIL {     public class MessageHelper     {         public static string ConvertIntToPlugwiseLogHex(int logId)         {             string output ="";             int newlogId = 278528 + (32 * logId);             output = newlogId.ToString("X8");             return output;         }     } }