From 678a8dfd44faa1b2684ba746cfdd8802d690ebb6 Mon Sep 17 00:00:00 2001 From: ceee Date: Thu, 27 Jun 2013 00:28:10 +0200 Subject: [PATCH] documentation for Utilities; --- PocketSharp/Utilities.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/PocketSharp/Utilities.cs b/PocketSharp/Utilities.cs index 181a8dd..3beedd7 100644 --- a/PocketSharp/Utilities.cs +++ b/PocketSharp/Utilities.cs @@ -6,8 +6,16 @@ using System.Text; namespace PocketSharp { + /// + /// General utilities + /// internal class Utilities { + /// + /// converts DateTime to an UNIX timestamp + /// + /// The date. + /// UNIX timestamp public static int? GetUnixTimestamp(DateTime? dateTime) { if(dateTime == null) return null; @@ -16,6 +24,13 @@ namespace PocketSharp } + /// + /// Creates a Parameter object. + /// + /// The name. + /// The value. + /// The type. + /// public static Parameter CreateParam(string name, object value, ParameterType type = ParameterType.GetOrPost) { return new Parameter()