Home
Simple
Simple
Detailed
Westwind Utilities
User Guide
Managing Configuration Settings with AppConfiguration
Basic Implemention of an AppConfiguration Subclass
Creating an Application wide, static Configuration Instance
Using Other Providers with AppConfiguration
Configuration with IConfigurationProviders
Storing Configuration Settings in .NET Configuration Files
Encrypting Property Keys
Storing Configuration Settings in a File, String or SQL Server
Adding Complex Types in .config Files
Keeping Properties from getting serialized
SqlDataAccess - A lightweight ADO.NET Data Access Layer
Connection Management
Executing Queries
Executing NonQueries
Executing Stored Procedures
Passing Parameters to Queries
Class Reference
Namespace System.IO
Class MemoryStreamExtensions
AsString
FromString
Class StreamExtensions
AsString
Namespace Westwind.Utilities
Class AsyncUtils
DelayExecution
DelayExecution
FireAndForget
FireAndForget
RunSync
RunSync
RunSync
RunSync
Class ComObject
Constructor
Constructor
Constructor
CreateFirstFrom
CreateFromProgId
Detach
Dispose
TryGetIndex
TryGetMember
TryInvokeMember
TrySetMember
Class DataUtils
MinimumSqlDate
CopyDataRow
CopyObjectData
CopyObjectData
CopyObjectData
CopyObjectData
CopyObjectFromDataRow
CopyObjectToDataRow
DataReaderToIEnumerable
DataReaderToList
DataReaderToObject
DataReaderToObjectList
DataTableToObjectList
DataTableToTypedList
DbTypeToDotNetType
DotNetTypeToDbType
DotNetTypeToSqlType
GenerateUniqueId
GenerateUniqueNumericId
GetRandomNumber
IndexOfByteArray
IndexOfByteArray
InitializeDataRowWithBlanks
RemoveBytes
SqlTypeToDotNetType
Class DebugUtils
GetInnerExceptions
GetTextWithLineNumbers
Class DelegateFactory
Create
Create
Class Encryption
EncryptionKey
EncryptionKeySize
BinaryToBinHex
BinHexToBinary
ComputeHash
ComputeHash
ComputeHash
DecryptBytes
DecryptBytes
DecryptBytes
DecryptBytes
DecryptBytes
DecryptString
DecryptString
DecryptString
EncryptBytes
EncryptBytes
EncryptBytes
EncryptBytes
EncryptString
EncryptString
EncryptString
GetChecksumFromBytes
GetChecksumFromFile
GZipFile
GZipMemory
GZipMemory
GZipMemory
Class Expando
Constructor
Constructor
Constructor
Properties
Contains
GetDynamicMemberNames
GetProperties
TryGetMember
TryInvokeMember
TrySetMember
Item
Class FileUtils
AddTrailingSlash
AddTrailingSlash
CamelCaseSafeFilename
CopyDirectory
CopyDirectory
CopyStream
CopyStream
DeleteFiles
DeleteTimedoutFiles
ExpandPathEnvironmentVariables
FilePathAsUrl
FindFileInHierarchy
FindFilesInHierarchy
GetChecksumFromFile
GetCompactPath
GetFileEncoding
GetPhysicalPath
GetRelativePath
GetShortPath
GetTempFilenameWithExtension
HasInvalidPathCharacters
NormalizeDirectory
NormalizePath
OpenStreamReaderWithEncoding
ReadAllTextAsync
SafeFilename
WriteAllTextAsync
Class GenericUtils
Inlist
Class HtmlUtils
BinaryToEmbeddedBase64
DisplayMemo
DisplayMemoEncoded
EmbeddedBase64ToBinary
FixHTMLForDisplay
GetSiteBasePath
Href
Href
HtmlAbstract
ImgRef
SanitizeHtml
StripHtml
Class HttpClientRequestSettings
Constructor
GetResponseDataAsync
GetResponseErrorMessage
GetResponseJson
GetResponseStringAsync
CapturedRequestContent
CapturedResponseContent
Credentials
Encoding
ErrorException
ErrorMessage
HasErrors
HasResponseContent
Headers
HttpVerb
HttpVersion
IsRawData
PreAuthenticate
Proxy
Request
RequestContent
RequestContentType
Response
ResponseByteData
ResponseStatusCode
ThrowExceptions
Timeout
Url
UserAgent
Class HttpClientUtils
Constructor
STR_MultipartBoundary
DownloadJsonAsync
DownloadJsonAsync
DownloadResponseMessageAsync
DownloadStringAsync
DownloadStringAsync
GetHttpClient
Class HttpRequestSettings
Constructor
CapturedRequestContent
CapturedResponseContent
Content
ContentType
Credentials
DontThrowOnErrorStatusCodes
Encoding
Headers
HttpVerb
HttpVersion
IsRawData
PreAuthenticate
Proxy
Response
ResponseByteData
ResponseStatusCode
Timeout
Url
UserAgent
Class HttpUtils
CreateWebProxy
DownloadImageToFile
DownloadImageToFileAsync
HttpRequestBytes
HttpRequestBytes
HttpRequestBytesAsync
HttpRequestBytesAsync
HttpRequestString
HttpRequestString
HttpRequestStringAsync
HttpRequestStringAsync
JsonRequest
JsonRequestAsync
Class HttpUtilsWebClient
Constructor
Class ImageUtils
GetExtensionFromMediaType
GetImageMediaTypeFromFilename
Class JsonSerializationUtils
CreateJsonNet
Deserialize
Deserialize
DeserializeFromFile
DeserializeFromFile
FormatJsonString
Serialize
SerializeToFile
Class LanguageUtils
IgnoreErrors
IgnoreErrors
Class NetworkUtils
GetBaseDomain
GetBaseDomain
IsLocalIpAddress
IsLocalIpAddress
Class ObjectFactory<T>
Constructor
CreateObject
CreateThreadScopedObject
GetUniqueObjectKey
Class PropertyBag
Constructor
CreateFromXml
Class PropertyBag<TValue>
Constructor
CreateFromXml
FromXml
GetSchema
ReadXml
ToXml
WriteXml
Class ReflectionUtils
MemberAccess
MemberAccessCom
CallMethod
CallMethod
CallMethodCom
CallMethodEx
CallMethodExCom
CallStaticMethod
CreateComInstance
CreateInstanceFromString
CreateInstanceFromType
GetEnumList
GetField
GetProperty
GetPropertyCom
GetPropertyEx
GetPropertyExCom
GetPropertyInfoEx
GetPropertyInfoInternal
GetStaticProperty
GetStaticProperty
GetTypeFromName
GetTypeFromName
InvokeEvent
IsAnonoymousType
LoadAssembly
SetField
SetProperty
SetPropertyCom
SetPropertyEx
SetPropertyExCom
ShallowClone
StringToTypedValue
StringToTypedValue
TypedValueToString
Class Scheduler
Constructor
ExecuteScheduledEvent
AddItem
AddItem
AddItem
AddItem
Dispose
GetNextItem
PingServer
Start
Start
Stop
Cancelled
CheckFrequency
Items
WebServerPingUrl
Class SchedulerItem
Constructor
Data
Entered
TextData
Type
Class SerializationUtils
DeSerializeObject
DeSerializeObject
DeSerializeObject
DeSerializeObject
ObjectToString
SerializeObject
SerializeObject
SerializeObject
SerializeObject
SerializeObjectToString
Class ShellUtils
ExecuteCommandLine
ExecuteProcess
ExecuteProcess
ExecuteProcess
GoUrl
HttpGet
HttpGet
HttpGetBytes
HttpGetBytes
OpenFileInExplorer
OpenTerminal
OpenUrl
ShellExecute
ShowHtml
ShowString
ShowText
Class StringSerializer
Deserialize
DeserializeObject
SerializeObject
Class StringUtils
Base36Decode
Base36Encode
BinaryToBinHex
BinHexToBinary
BytesToString
Contains
ContainsMany
ContainsMany
ContainsMany
CountLines
DetokenizeString
EqualsNoCase
ExtractString
FromBase64String
FromCamelCase
GetLastCharacters
GetLines
GetMaxCharacters
GetProperty
GetUrlEncodedKey
IndexOfNth
IndexOfNth
Inlist
IsStringInList
LastIndexOfNth
LastIndexOfNth
LogString
NewStringId
NormalizeIndentation
NormalizeLineFeeds
Occurs
Occurs
ParseDecimal
ParseInt
ProperCase
RandomString
ReplaceMany
ReplaceString
ReplaceStringInstance
Replicate
Replicate
Right
SetProperty
SetUrlEncodedKey
StartsWithMany
StartsWithMany
StreamToString
StringToBytes
StringToStream
StripNonNumber
TerminateString
TextAbstract
ToBase64String
ToCamelCase
TokenizeString
TrimStart
Truncate
UrlDecode
UrlEncode
UrlEncodePathSafe
Class TimeUtils
MIN_DATE_VALUE
DateTimeFromDateAndTime
DateTimeFromDateAndTime
FractionalHoursToString
FractionalHoursToString
FriendlyDateString
FriendlyElapsedTimeString
FriendlyElapsedTimeString
FriendlyElapsedTimeString
IsBetween
IsBetween
MimeDateTime
RoundDateToMinuteInterval
RoundDateToMinuteInterval
ShortDateString
ShortDateString
ShortTimeString
ToTimeZoneTime
ToTimeZoneTime
Truncate
Class UrlEncodingParser
Constructor
Parse
SetValues
ToString
DecodePlusSignsAsSpaces
Item
Class UrlParser
Constructor
ExpandUrls
Class ValidationError
Constructor
Constructor
Constructor
Constructor
ToString
ControlID
ID
Message
Class ValidationErrorCollection
Constructor
Add
Add
AddFormat
Assert
Assert
Assert
Assert
Remove
ToHtml
ToString
HasErrors
Item
Class VersionExtensions
CompareVersions
FormatVersion
FormatVersion
Class XmlUtils
CreateXmlNamespaceManager
GetXmlAttributeBool
GetXmlAttributeInt
GetXmlAttributeString
GetXmlBool
GetXmlDateTime
GetXmlDecimal
GetXmlEnum
GetXmlInt
GetXmlNode
GetXmlString
MapTypeToXmlType
MapXmlTypeToType
XmlString
Delegate LateBoundMethod
Constructor
BeginInvoke
EndInvoke
Invoke
Enumeration DataAccessProviderTypes
MySql
PostgreSql
SqLite
SqlServer
Enumeration DateTimeResolution
Day
Hour
Millisecond
Minute
Month
Second
Tick
Year
Enumeration FindFileInHierarchyDirection
Down
Up
Enumeration LineFeedTypes
Auto
CrLf
Lf
Enumeration ObjectToStringTypes
Fields
Properties
PropertiesAndFields
Enumeration PathReturnOptions
PathAndHash
PathAndQuery
PathAndQueryAndHash
PathOnly
Enumeration RoundingDirection
Round
RoundDown
RoundUp
Enumeration TerminalModes
Bash
Command
Powershell
Namespace Westwind.Utilities.Configuration
Class AppConfiguration
Constructor
ErrorMessage
Provider
Initialize
Read
Read
Read
Read
Read
Read
Write
WriteAsString
Class ConfigurationProviderBase<TAppConfiguration>
DecryptFields
EncryptFields
Read
Read
Read
Read
Write
WriteAsString
ConfigurationSection
EncryptionKey
ErrorMessage
PropertiesToEncrypt
Class JsonFileConfigurationProvider<TAppConfiguration>
Constructor
Read
Read
Write
JsonConfigurationFile
Class StringConfigurationProvider<TAppConfiguration>
Constructor
Read
Read
Write
InitialStringData
Class XmlFileConfigurationProvider<TAppConfiguration>
Constructor
Read
Read
Write
UseBinarySerialization
XmlConfigurationFile
Interface IConfigurationProvider
DecryptFields
EncryptFields
Read
Read
Read
Read
Write
WriteAsString
ConfigurationSection
EncryptionKey
ErrorMessage
PropertiesToEncrypt
Namespace Westwind.Utilities.Extensions
Class DateTimeExtensions
BeginningOfDay
BeginningOfMonth
Between
EndOfDay
EndOfMonth
Class DictionaryExtensions
FromXml
ToXml
Namespace Westwind.Utilities.InternetTools
Class HttpClient
Constructor
ReceiveData
SendData
AddPostFile
AddPostKey
AddPostKey
AddPostKey
AddPostKey
CreateWebRequestObject
DownloadBytes
DownloadBytesAsync
DownloadFile
DownloadResponse
DownloadResponseAsync
DownloadStream
DownloadString
DownloadStringAsync
DownloadStringPartial
GetPostBuffer
ResetPostData
SetPostStream
BufferSize
Cancelled
ContentType
Cookies
Error
ErrorMessage
HandleCookies
HttpTimings
HttpVerb
IgnoreCertificateErrors
Password
PostMode
ProxyAddress
ProxyBypass
ProxyPassword
ProxyUsername
ThrowExceptions
TimeoutMs
UseGZip
UserAgent
Username
WebRequest
WebResponse
Class HttpTimings
Constructor
IsEmpty
StartRequest
FirstByteTime
LastByteTime
StartedTime
TimeToFirstByteMs
TimeToLastByteMs
Class ReceiveDataEventArgs
Constructor
Cancel
CurrentByteCount
CurrentChunk
Done
NumberOfReads
TotalBytes
Class SmtpClientNative
Constructor
SendComplete
SendError
AlternateText
AlternateTextContentType
AttachmentList
Attachments
BCC
CC
CharacterEncoding
ContentType
Encoding
Error
ErrorMessage
HandleExceptions
Headers
LogFile
MailServer
Message
Password
Priority
Recipient
ReplyTo
ReturnReceipt
SenderEmail
SenderName
ServerPort
Subject
Timeout
UserAgent
Username
UseSsl
AddAlternateView
AddHeader
AddHeadersFromString
Close
Connect
Dispose
LoadSmtpClient
SendMail
SendMailAsync
SendMessage
Enumeration HttpPostMode
Json
MultiPart
Raw
UrlEncoded
Xml
Namespace Westwind.Utilities.Linq
Class LinqExtensions
FlattenTree