﻿<?xml version="1.0"?>
<doc>
<assembly>
<name>
Vascor.Library
</name>
</assembly>
<members>
<member name="M:Vascor.Library.Config.AppSettings(System.String,System.Boolean)">
 <summary>
 This method will read the appSettings node in Web.config or App.config and returns the value of the Key requested.
 If the appSettings node is not found in Web.config or App.config, it will try to read from Machine.config. If the
 appSettings node is not found at all, or if the Key is not found at all, or if the value of the Key is empty, and
 blnIsOptional is False, this method will throw an exception.
 </summary>
 <param name="strKey">Name of the element to extract the value from in the given section.</param>
 <param name="blnIsOptional">Determines if the method should throw an exception when the element is not found or return nothing.</param>
 <returns>A string equal to the value of a given key in a configuration file.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Config.AppSettingsEx(System.String,System.Boolean)">
 <summary>
 This method will read the appSettings node in Web.config or App.config and returns the value of the Key requested.
 If the appSettings node is not found in Web.config or App.config, it will try to read from the appSettings node 
 in Machine.config. If the appSettings node is not found at all, or if the Key is not found at all, or if the value 
 of the Key is empty,  it will try to read from a custom section in Machine.config that is pointed to by the value of 
 the Machine.Config.SectionName key defined in the appSettings node. If that custom section is not found, or if the 
 key is not found, or if the value of the key is empty, it will try to read from the enterprise config section. If the 
 enterprise config section is not found, or if the key is not found in the enterprise config setion, or if the value 
 of the key is at all empty, and if blnIsOptional is False, it will throw an exception.
 </summary>
 <param name="strKey">Name of the element to extract the value from in the given section.</param>
 <param name="blnIsOptional">Determines if the method should throw an exception when the element is not found or return nothing.</param>
 <returns>A string equal to the value of a given key in a configuration file.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Config.GetConfig(System.String,System.String,System.Boolean)">
 <summary>
 This method will get the value of the key from the specified config section. If the specified
 config section is not found, or if the key is not found, or if the value of the key is empty,
 and blnIsOptional equals False, it will throw an exception. For this method to work properly,
 the handler of the config section must be of type NameValueSectionHandler.
 </summary>
 <param name="strSectionName">Section of the config file to locate the Key.</param>
 <param name="strKey">Name of the element to extract the value from in the given section.</param>
 <param name="blnIsOptional">Determines if the method should throw an exception when the element is not found or return nothing.</param>
 <returns>A string equal to the value of a given key in a configuration file.</returns>
 <remarks>test</remarks>
</member>
<member name="M:Vascor.Library.Config.GetConfigEx(System.String,System.String,System.Boolean)">
 <summary>
 This method will get the value of the key from the specified config section. If the specified 
 config section is not found, or if the key is not found,  or if the value of the key is empty, 
 it will try to read from the enterprise config section. If the enterprise config section is not 
 found, or if the key is not found in the enterprise config setion, or if the value of the key 
 is at all empty, and if blnIsOptional is False, it will throw an exception.
 </summary>
 <param name="strSectionName">Section of the config file to locate the Key.</param>
 <param name="strKey">Name of the element to extract the value from in the given section.</param>
 <param name="blnIsOptional">Determines if the method should throw an exception when the element is not found or return nothing.</param>
 <returns>A string equal to the value of a given key in a configuration file.</returns>
 <remarks></remarks>
</member>
<member name="T:Vascor.Library.DataUtility">
 <summary>
 Some helpful functions for dealing with data
 </summary>
 <remarks>
 10/13/2005
 Matt Ryavec
 Some helpful functions for dealing with data.
 
 09/11/2008
 Justin Bailey
 Added ObjectDataSource methods and related Imports.
 </remarks>
</member>
<member name="M:Vascor.Library.DataUtility.GetODSFilter(System.Web.UI.Page@,System.Collections.Generic.List{System.Web.UI.WebControls.ControlParameter},System.Web.UI.WebControls.ObjectDataSource@,System.String,System.Boolean)">
 <summary>
 Get a string filter and set the Filter parameters for the specified ObjectDataSource and list
 of filter parameters. Controls in the list will be checked and omitted if no value is found.
 Support for Integer types is limited when blnAsString is set to false--see the notes on the 
 <see cref="M:Vascor.Library.DataUtility.BuildStartsWithFilterExpression(System.Web.UI.WebControls.ControlParameter,System.Int32,System.String,System.Boolean)" /> method. This method group could be
 enriched to support more controls and scenarios used with the ObjectDataSource.
 <example>
 <c>Dim strFilterExpression As String = GetODSFilter(lstFilterParameters, odsMyObjectDataSource, "AND", True)</c>
 <c>If odsMyObjectDataSource.FilterParameters.Count > 0 Then
         odsMyObjectDataSource.FilterExpression = strFilterExpression.ToString()
         odsMyObjectDataSource.DataBind() 'Rebind to bubble any exceptions from here.
 ... </c>
 </example>
 </summary>
 <param name="pgePage">Current page instance used to determine if the the Filter Control values are empty or not.</param>
 <param name="lstFilterParameters">List of ControlParameters available to be filtered by.</param>
 <param name="odsToFilter">Target ObjectDataSource in which to apply the valid filter parameters.</param>
 <param name="strOperator">Operator for multiple strings. AND or OR, etc.</param>
 <param name="blnAsString">Treat all parameter values as a String or allow default typing such as Integer etc.
 This should be set to false when a DropDownList containing ID lookup values is used.</param>
 <returns>String FilterExpression to be applied to the ObjectDataSource containing only controls that
 have values and can be applied to the filter expression string. This is not automatically added
 to the ObjectDataSource so that customizations can be made in light of the limitations of this 
 method.</returns>
 <remarks>
 03/13/2008
 Justin Bailey
 Added. This is a very limited method, but allows basic filtering for TextBoxes and DropDownLists,
 specifically. See method comments for known limitations and workarounds already in place.
 
 09/11/2008
 Justin Bailey
 Moved to DataUtility and added strOperator and blnAsString to support a more consistent behavior 
 across string values containing integers.
 </remarks>
</member>
<member name="M:Vascor.Library.DataUtility.BuildStartsWithFilterExpression(System.Web.UI.WebControls.ControlParameter,System.Int32,System.String,System.Boolean)">
 <summary>
 Build a filter expression string based on a parameter name (field name) and its index for use in a Starts With filter.
 *Integer types will use >= instead of LIKE if blnAsString is false. For full integer support, use a custom method.
 </summary>
 <param name="cpmParam">Control parameter for the expression.</param>
 <param name="intParamCount">Index of the control parameter to be added to the generated expression.</param>
 <param name="strOperator">Operator for multiple strings. AND or OR, etc.</param>
 <param name="blnAsString">Treat all parameter values as a String, forcing "{0} LIKE '{1}'" or allow default 
 typing such as Integer etc through the TypeCode of the ControlParameter. This should be set to false when a 
 DropDownList containing ID lookup values is used.</param>
 <returns>"[strOperator] strParamName LIKE (or = or >=) {intParamCount}% " with the brackets indicating the dependence on intParamCount > 0.</returns>
 <remarks>
 03/13/2008
 Justin Bailey
 Created. This is very specific for this use, but could be integrated into more rich "filter builder" method or class.
 
 09/11/2008
 Justin Bailey
 Moved to DataUtility and added blnAsString to support a more consistent behavior across string values containing integers.
 </remarks>
</member>
<member name="M:Vascor.Library.DataUtility.XMLToDataTable(System.String)">
 <summary>
 Converts an XML string into a DataTable
 </summary>
 <param name="strXMLString"></param>
 <returns>    
 </returns>
 <remarks>
 01/21/2010
 Horacio Torres
 </remarks>
</member>
<member name="M:Vascor.Library.Email.Send(System.String,System.String,System.String,System.String,System.String,System.Web.Mail.MailFormat,System.String,System.String,System.Web.Mail.MailPriority)">
 <summary>
 
 </summary>
 <param name="SendTo"></param>
 <param name="From"></param>
 <param name="Subject"></param>
 <param name="Body"></param>
 <param name="Attachments"></param>
 <param name="BodyFormat"></param>
 <param name="Cc"></param>
 <param name="Bcc"></param>
 <param name="Priority"></param>
 <remarks>
 01/19/2011
 Samantha Aldridge
 Added xml comments
 Added host environment value to email subject line if value is NOT production or nothing. also appended to body of email.
 WI 2640
 
 01/19/2011
 Justin Bailey
 Changed from first line to footer for the body message.
 </remarks>
</member>
<member name="M:Vascor.Library.Encryption.MD5Hash(System.String,System.Text.Encoding)">
 <summary>
 This method generates a MD5Hash of a string using the CryptoConfig.CreateFromName method of the framework.
 </summary>
 <param name="valueToHash">THe string to hash.</param>
 <param name="encoding">The encoding type.</param>
 <returns>The computed hash.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Encryption.TripleDESEncrypt(System.String)">
 <summary>
 Returns a Base64 encoded string that has been encrypted.
 </summary>
 <param name="valueToEncrypt">The string to encrypt.</param>
 <returns>The encrypted string.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Encryption.TripleDESEncrypt(System.String,System.Text.Encoding)">
 <summary>
 Returns a string using a supplied encoding that has been encrypted.
 </summary>
 <param name="valueToEncrypt">The string to encrypt.</param>
 <param name="encoding">The encoding type.</param>
 <returns>Returns a string using a supplied encoding that has been encrypted.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Encryption.TripleDESDecrypt(System.String)">
 <summary>
 Returns a Base64 encoded string that has been decrypted.
 </summary>
 <param name="valueToDecrypt">The string to decrypt.</param>
 <returns>Returns a Base64 encoded string that has been Decrypted.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.Encryption.TripleDESDecrypt(System.Byte[],System.Text.Encoding)">
 <summary>
 Returns a string using a supplied encoding that has been decrypted.
 </summary>
 <param name="valueToDecrypt">The string to decrypt.</param>
 <param name="encoding">The encoding type.</param>
 <returns>Returns a string using a supplied encoding that has been decrypted.</returns>
 <remarks></remarks>
</member>
<member name="M:Vascor.Library.GridUtility.GetTextBoxFromGrid(System.Web.UI.WebControls.GridView,System.Int32,System.Int32,System.Int32)">
 <summary>
 Get the target TextBox from the specified Grid.
 </summary>
 <param name="grdGrid">Target GridView</param>
 <param name="intRowIndex">Target Row Index</param>
 <param name="intCellIndex">Target Cell Index</param>
 <param name="intControlIndex">Target Control Index</param>
 <returns>DirectCast Target as TextBox</returns>
 <remarks>
 01/30/2008
 Justin Bailey
 Ported from pages. Converted to GridView objects.
 </remarks>
</member>
<member name="M:Vascor.Library.GridUtility.GetCheckBoxFromGrid(System.Web.UI.WebControls.GridView,System.Int32,System.Int32,System.Int32)">
 <summary>
 Get the target CheckBox from the specified Grid.
 </summary>
 <param name="grdGrid">Target GridView</param>
 <param name="intRowIndex">Target Row Index</param>
 <param name="intCellIndex">Target Cell Index</param>
 <param name="intControlIndex">Target Control Index</param>
 <returns>DirectCast Target as CheckBox</returns>
 <remarks>
 01/30/2008
 Justin Bailey
 Ported from pages. Converted to GridView objects.
 </remarks>
</member>
<member name="M:Vascor.Library.GridUtility.WrapHeaderControlWithGridForExport(System.Web.UI.Control,System.Web.UI.Control,System.String)">
 <summary>
 Get a new table containing an optional text title row, Header control row, space row, and a Grid control row 
 intended for the dynamic generation of a "report-like" table view used with the ExportToExcel method without
 affecting a host page layout. 
 </summary>
 <param name="headerControl">Control to include, for example, a header table with information about the grid.</param>
 <param name="targetGrid">Grid control to include in the content row.</param>
 <param name="Title">Optional title to be added in the first row of the new table, i.e. the "report" title.</param>
 <returns>A new Table containing an optional title row, header content, and grid content in a single column with 4 or 5 rows.</returns>
 <remarks>
 02/26/2008
 Justin Bailey
 Created. This is not the most versatile method, but it works for wrapping most controls with a table that contains
 a Grid, and additional information, intended for Export.
 It separates the UI from the export functionality by using a dynamically generated table control and provides 
 the option of adding additional "report-like" content to the dynamic table without needing that layout on the display page.
 </remarks>
</member>
<member name="T:Vascor.Library.PivotTable">
 <summary>
 This class was originally created in FVSCMSReports.  It is being relocated
 here.  The one in FVSCMSReports will be refactored out in the future.
 This is the version to use.
 </summary>
 <remarks></remarks>
</member>
<member name="T:Vascor.Library.ReflectionUtility">
 <summary>
 Reflection-based utility methods.
 </summary>
 <remarks>
 10/17/2005
 Matt Ryavec
 Some helpful functions for dealing with reflection
 
 12/02/2008
 Justin Bailey
 Added GetAppDomainAssemblyInformation.
 </remarks>
</member>
<member name="M:Vascor.Library.ReflectionUtility.PropertiesEquivalent(System.Reflection.PropertyInfo,System.Reflection.PropertyInfo)">
 <summary>
 Compares selected properties of two PropertyInfo objects, and returns true on a full match.
 </summary>
 <param name="objProperty1"></param>
 <param name="objProperty2"></param>
 <returns></returns>
 <remarks>
 10/17/2005
 Matt Ryavec
 </remarks>
</member>
<member name="M:Vascor.Library.ReflectionUtility.GetAppDomainAssemblyInformation">
 <summary>
 Get the entry assembly (if available) and assemblies loaded
 into the current executing context AppDomain.
 </summary>
 <returns>String, formatted for use in an Error Log or Email.</returns>
 <remarks>
 12/01/2008
 Justin Bailey
 
 12/17/2008
 Justin Bailey
 Changed from using the DomainManager.
 </remarks>
</member>
<member name="M:Vascor.Library.SysError.Log(System.String,System.Web.HttpRequest@,System.String,System.Boolean,System.String)">
 <summary>
 Log an exception to the given LogPath or the Enterprise ErrorLogPath, if not provided.
 If an error occurs while attempting to record the given exception, the error will be
 logged to the system's EventLog
 </summary>
 <param name="strLoginName"></param>
 <param name="objRequest"></param>
 <param name="strLogPath"></param>
 <param name="blnSendMail"></param>
 <param name="strNotificationList"></param>
 <remarks>
 12/01/2008
 Justin Bailey
 Refactored to use StringBuilder and include the Assemblies
 loaded in the execution context of the current AppDomain.
 Moved file writing to after the string is built to reduce
 the amount of time the streamwriter is open.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.GetVersionedFileName(System.String,System.String)">
 <summary>
 This will return a versioned filename. For example, if hello.txt
 exists in the given directory, this method will return hello.1.txt.
 </summary>
 <param name="strDirectory"></param>
 <param name="strFileName"></param>
 <returns></returns>
 <remarks>
 05/18/2006
 James Bucado
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.GetVersionedFileName(System.String,System.String,System.String)">
 <summary>
 Checks the given path and filename and if it exists, appends a count 
 with the given string format to the end of the file before the extension
 and returns a FullFileName (with the given path) that does not already exist
 on the filesystem. For example, if the file "hello.txt" already exists and the 
 FileCountFormat is "({0})" then the value "path\hello(1).txt" will be returned.
 </summary>
 <param name="strPath"></param>
 <param name="strFileName"></param>
 <param name="strFileCountFormat">"({0})" or any zero-based string format expression.</param>
 <returns></returns>
 <remarks>
 02/23/2009
 Justin Bailey
 Added this overload to allow custom formats to be applied.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.MoveSelectedListItems(System.Web.UI.WebControls.ListBox,System.Web.UI.WebControls.ListBox)">
 <summary>
 Moves selected items from one source list control to Target list control
 </summary>
 <param name="lstSource">Source List Box </param>
 <param name="lstTarget"> Target List Box </param>
 <remarks>
 05/12/09
 Jaya Polimati
 Added
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.CopySelectedListItems(System.Web.UI.WebControls.ListBox,System.Web.UI.WebControls.ListBox)">
 <summary>
 Copy selected items from one source list control to Target list control
 </summary>
 <param name="lstSource">Source List Box </param>
 <param name="lstTarget"> Target List Box </param>
 <remarks>
 05/27/09
 Jaya Polimati
 Added
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.RemoveDuplicateListItems(System.Web.UI.WebControls.ListBox,System.Web.UI.WebControls.ListBox)">
 <summary>
 Check the Target List with source and remove any existing items that are 
 in the source list from the target list
 </summary>
 <param name="lstSource">Source List Box </param>
 <param name="lstTarget">Target List Box </param>
 <remarks>
 05/09/09
 Jaya Polimati
 Added.
 </remarks>
</member>
<member name="T:Vascor.Library.Utility.StringMatchingUtility">
 <summary>
 Custom string matching/formatting operations.
 </summary>
 <remarks>
 06/10/2008
 Justin Bailey
 Created.
 'TODO: Refactor this, perhaps include the MarkMatchingKeywords method.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.StringMatchingUtility.MarkStringMatch(System.Text.RegularExpressions.Match)">
 <summary>
 Take a Reg Ex match and add custom tags around it to indicate a match.
 </summary>
 <param name="mRegExMatch">The matched string.</param>
 <returns></returns>
 <remarks>
 06/10/2008
 Justin Bailey
 Added.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ReadExcelFile(System.String)">
 <summary>
 Reads the Excel file sent and pulls the VINs from the Excel file.
 </summary>
 <param name="FileName"></param>
 <returns></returns>
 <remarks>
 01/16/2004
 James Fitzgerald
 This function reads the Excel file sent and pulls the VINs from the Excel file.
 
 06/17/2005
 Ben Richiravanich
 This code came from James Fitzgerald
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ExportToExcel(System.Data.DataSet,System.Web.HttpResponse,System.String)">
 <summary>
 Export a Dataset to Excel.
 </summary>
 <param name="objData">Object containing data to export</param>
 <param name="response">Response object</param>
 <param name="strFileName">Filename with .xls</param>
 <remarks>
 01/17/2008
 Justin Bailey
 Added auto-disposing using statements and XML comments. Updated variables and added "Overloads" to reflect coding standard.
 
 02/08/2008
 Justin Bailey
 Consolidated Response calls.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ExportToExcel(System.Object,System.Web.HttpResponse,System.String)">
 <summary>
 Export an object to Excel. 
 *Do not use with GridView.
 </summary>
 <param name="objData">Object containing data to export</param>
 <param name="response">Response object</param>
 <param name="strFileName">Filename with .xls</param>
 <remarks>
 Unknown
 Replaced this "ByVal dgdData As DataGrid, _" with a base object to support repeater as well as datagrid.
 
 01/17/2008
 Justin Bailey
 Added auto-disposing using statements and XML comments. Updated variables and added "Overloads" to reflect coding standard.
 
 02/08/2008
 Justin Bailey
 Consolidated Response calls.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ConvertGridViewToTable(System.Web.UI.WebControls.GridView)">
 <summary>
 Convert a GridView into a Table so that the RenderControl method will give compatible markup.
 </summary>
 <param name="grdSource">Source GridView</param>
 <returns>Table containing the GridView rows</returns>
 <remarks>
 02/08/2008
 Justin Bailey
 Moved from ExportToExcel; originally created 01/17/2008; 
 based in part on http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html.
 Addresses "Control ... must be placed inside a form tag with runat=server" exception.
 Common internet solutions may indicate overriding VerifyRenderingInServerForm - do not do that.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ExcelResponseSetup(System.Web.HttpResponse@,System.String@)">
 <summary>
 Clear the given response and set content type and filename for ExportToExcel.
 Sets <c>ContentType = "application/vnd.ms-excel"</c>.
 </summary>
 <param name="htrResponse">Response object.</param>
 <param name="strFileName">Filename including .xls</param>
 <remarks>
 02/08/2008
 Justin Bailey
 Ported from each ExportToExcel method.
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.ExcelResponseEnd(System.Web.HttpResponse@,System.String,System.Boolean)">
 <summary>
 Write the generated HTML string to the Response stream and optionally end it (default).
 </summary>
 <param name="htrResponse">Response object.</param>
 <param name="strHTMLOutput">String HTML output.</param>
 <param name="blnEndResponse">End the Response object (default).</param>
 <remarks>
 02/08/2008
 Justin Bailey
 Ported from each ExportToExcel method.
 
 03/08/2010
 Samantha Aldridge
 Added try/catch to eat the thread abort exception thrown by response.end
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.RemoveNonAlphaNumericCharacters(System.String)">
 <summary>
 Take a string and remove NonAlphaNumericCharacters
 </summary>
 <param name="strInput">Input string.</param>
 <returns>String with NonAlphaNumericCharacters removed</returns>
 <remarks>
 7/23/09
 James Brooks
 Added
 </remarks>
</member>
<member name="M:Vascor.Library.Utility.GetKeyValueChangingString``2(System.String,System.Collections.Generic.KeyValuePair{``0,``1},System.Collections.Generic.KeyValuePair{``0,``1})">
 <summary>
 Get a comment string containing [strName] changed from [kvpOld.Value] ([kvpOld.Key]) to [kvpNew.Value] ([kvpNew.Key])
 based on a Key comparison. Based on the Vehicle.GetInt/StringValueChangedString methods. Intended for situations
 where both the ID and string values can be visible to aid both an end user and support staff. Use: 
 Utility.GetKeyValueChangingString("DVO Status", kvpOldStatus, kvpNewStatus) where kvpOld/New paramaters match and 
 kvpNewStatus = New Generic.KeyValuePair(Of Integer, String)(intDVOStatusID, strDVOStatus), for example.
 </summary>
 <param name="strValueName">Typically the column name.</param>
 <param name="kvpOld">Typically Of Int, String with ID, ColumnName</param>
 <param name="kvpNew"></param>
 <returns></returns>
 <remarks>
 09/09/2009
 Justin Bailey
 Added.
 </remarks>
</member>
<member name="M:Vascor.Library.Logging.LogEntry.EventLogEntryTypeToLogEntryType(System.Diagnostics.EventLogEntryType)">
 <summary>
 Converts System.Diagnostics.EventLogEntryType to LogEntryType        
 </summary>
 <param name="objLogType"></param>
 <returns></returns>
 <remarks>
 05/10/2010
 Stanislav Kovatsenko
 Created
 </remarks>
</member>
<member name="M:Vascor.Library.Logging.TextFileLogListener.WriteEntry(Vascor.Library.Logging.LogEntry)">
 <summary>
 Writes log entry to the text file
 </summary>
 <param name="objLogEntry"></param>
 <remarks>
 05/07/2010
 Stanislav Kovatsenko and James Bucado
 Added code to create directory if directory does not exist
 Added critical section to make this method thread safe
 </remarks>
</member>
<member name="T:Vascor.Library.Extensions">
 <summary>
 Custom VASCOR extension methods that are not specific to an application.
 Import Vascor.Library.Extensions to enable.
 </summary>
 <remarks>
 10/24/2008 
 Justin Bailey
 Added for central storage of any VASCOR custom extension methods.
 Works for 3.5+ codebase only.
 
 06/13/2009 
 Justin Bailey
 Removed Overloads keyword as it is inappropriate in a Module.
 
 08/24/2009
 Justin Bailey
 Changed ByRef to ByVal as this was incorrectly copied from an
 example and not really thought through correctly when implemented here.
 There is no need to pass the pointer to the original object in 
 these core method cases. Not to mention C# can't work with them that way.
 
 05/04/2010
 Justin Bailey
 Removed Overloads keyword to support VS 2010.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToValue``1(System.Object)">
 <summary>
 Get a value as the given Type of T from an object, but
 replaces DBNull or Null values with the default value 
 of Nothing for the given Type T.
 Do not use this Overload with the String type if "" is expected; 
 use the method with a ReplacementValue parameter instead.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="objSource"></param>
 <returns>Value or the Default Value of the given Type of T.</returns>
 <remarks>
 10/24/2008
 Justin Bailey
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToValue``1(System.Object,``0)">
 <summary>
 Get a value as the given Type of T from an object, but
 replaces DBNull or Null values with the given 
 tReplacementValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="objSource"></param>
 <param name="tReplacementValue">Value to return if the object is DBNull or Null.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/24/2008
 Justin Bailey
 http://blog.falafel.com/2006/10/17/AddingSupportForNullableTypesToTheGenericConvertDBNullToMethod.aspx
 This will NOT work when called as an extension method on an object in VB:
 http://blogs.msdn.com/vbteam/archive/2007/01/24/extension-methods-and-late-binding-extension-methods-part-4.aspx
 
 06/06/2009 JPB: Changed DefaultValue to tReplacementValue for clarity.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToValue``1(System.Object,``0,System.Object)">
 <summary>
 Get a value as the given Type of T from an object, but
 replaces DBNull, Null, or the provided ComparisonValue 
 values with the given tReplacementValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="objSource"></param>
 <param name="tReplacementValue">Value to return if the object is DBNull or Null.</param>
 <param name="objComparisonValue"></param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/24/2008
 Justin Bailey
 http://blog.falafel.com/2006/10/17/AddingSupportForNullableTypesToTheGenericConvertDBNullToMethod.aspx
 This will NOT work when called as an extension method on an object in VB:
 http://blogs.msdn.com/vbteam/archive/2007/01/24/extension-methods-and-late-binding-extension-methods-part-4.aspx
 
 06/06/2009 JPB: Changed DefaultValue to tReplacementValue and updated comments for clarity.
 
 10/05/2009
 James Bucado
 Changed Convert.ChangeType to CType because the former does not allow conversion from Integer to Nullable(Of Integer).
 Tried DirectCast and got the same error. So far, I only have success with CType. 
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.TryToValue``1(System.Object,``0)">
 <summary>
 Tries ToValue conversion. If does not succeed, returnes default replacement value.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="objSource">The object to convert</param>
 <param name="tReplacementValue">Default Replacement Value</param>
 <returns></returns>
 <remarks>
 04/28/2010
 Stanislav Kovatsenko
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ItemValue``1(System.Data.DataRow@,System.String)">
 <summary>
 Get a value as the given Type of T from a DataRow, but
 switching DBNull or Null values with the Default Value of T.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drwSource"></param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/24/2008
 Justin Bailey
 http://blog.falafel.com/2006/10/17/AddingSupportForNullableTypesToTheGenericConvertDBNullToMethod.aspx
 This will NOT work when called on objects in VB:
 http://blogs.msdn.com/vbteam/archive/2007/01/24/extension-methods-and-late-binding-extension-methods-part-4.aspx
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ReplaceNull``1(System.Data.DataRow,System.String)">
 <summary>
 Similar to the TSQL function IsNull, except type safe--Get a value as 
 the given Type of T from a DataRow column, but replaces 
 DBNull or Null values with the default value of Nothing for T.
 Do not use this Overload with the String type if "" is expected; 
 use the method with a ReplacementValue parameter instead.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="objSource"></param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/24/2008
 Justin Bailey
 http://blog.falafel.com/2006/10/17/AddingSupportForNullableTypesToTheGenericConvertDBNullToMethod.aspx
 This will NOT work when called on objects in VB:
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ItemValue``1(System.Data.DataRow@,System.String,``0)">
 <summary>
 Get a value as the given Type of T from a DataRow, but
 switching DBNull or Null values with the given 
 DefaultValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drwSource"></param>
 <param name="tDefaultValue">Value to return if the object is DBNull or Null.</param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/27/2008
 Justin Bailey
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ReplaceNull``1(System.Data.DataRow,System.String,``0)">
 <summary>
 Similar to the TSQL function IsNull, except type safe--Get a value as 
 the given Type of T from a DataRow column, but replaces 
 DBNull or Null values with the given tReplacementValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drwSource"></param>
 <param name="tReplacementValue">Value to return if the object is DBNull or Null.</param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 06/06/2009
 Justin Bailey
 Same as ItemValue method, but attempting to find a good name
 so that it is easy for developers to use.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ItemValue``1(System.Data.SqlClient.SqlDataReader@,System.String)">
 <summary>
 Get a value as the given Type of T from an SqlDataReader, but
 switching DBNull or Null values with the Default Value of T.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drdSource"></param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/27/2008
 Justin Bailey
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ReplaceNull``1(System.Data.IDataReader,System.String)">
 <summary>
 Similar to the TSQL function IsNull, except type safe--Get a value as 
 the given Type of T from a SqlDataReader, but replaces 
 DBNull or Null values with the default value of Nothing for T. 
 Do not use this Overload with the String type if "" is expected; 
 use the method with a ReplacementValue parameter instead.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drdSource"></param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 06/06/2009
 Justin Bailey
 Same as ItemValue method, but attempting to find a good name
 so that it is easy for developers to use.
 
 04/14/2010
 James Fitzgerald
 Changed SqlClient.SqlDataReader to IDataReader.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ItemValue``1(System.Data.SqlClient.SqlDataReader@,System.String,``0)">
 <summary>
 Get a value as the given Type of T from a SqlDataReader, but
 switching DBNull or Null values with the given 
 DefaultValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drdSource"></param>
 <param name="tDefaultValue">Value to return if the object is DBNull or Null.</param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns>Value or DefaultValue as the given Type of T.</returns>
 <remarks>
 10/27/2008
 Justin Bailey
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToDBNull``1(``0)">
 <summary>
 Get a DBNull.Value if the source value is Null.
 The second overload should be used with Strings if String.Empty
 is considered Null.
 </summary>
 <typeparam name="T"></typeparam>
 <param name="tSource"></param>
 <returns></returns>
 <remarks>
 10/24/2008
 Justin Bailey
 Added.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToDBNull``1(``0,``0)">
 <summary>
 Get a DBNull.Value if the source value is equal to the given null comparison value
 or the value is null.
 </summary>
 <typeparam name="T"></typeparam>
 <param name="tSource"></param>
 <param name="objNullComparisonValue">
 Value to compare to in considering if the value should be returned as DBNull.</param>
 <returns></returns>
 <remarks>
 10/24/2008
 Justin Bailey
 Added.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToDBNull``1(System.Data.DataRow,System.String)">
 <summary>
 Get a DBNull value as the given Type of T from a DataRow if
 the given type is Nothing.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drwSource"></param>
 <returns></returns>
 <remarks>
 01/21/2008
 Justin Bailey
 http://blog.falafel.com/2006/10/17/AddingSupportForNullableTypesToTheGenericConvertDBNullToMethod.aspx
 This will NOT work when called on objects in VB:
 http://blogs.msdn.com/vbteam/archive/2007/01/24/extension-methods-and-late-binding-extension-methods-part-4.aspx
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToDBNull``1(System.Data.DataRow,System.String,``0)">
 <summary>
 Get a DBNull value as the given Type of T from a DataRow if
 the given type is Nothing or it is equal to the given NullComparisonValue.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="drwSource"></param>
 <param name="objNullComparisonValue">Value to compare against to qualify for returning DBNull.</param>
 <param name="strColumnName">Column Name to retrieve.</param>
 <returns></returns>
 <remarks>
 01/21/2008
 Justin Bailey
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.ToDateMinValue(System.String)">
 <summary>
 This method will return a Date value of some sort.
 </summary>
 <param name="objSource"></param>
 <returns>Either DateTime.MinValue if the string is not a valid date or the string
 expressed as a date object.</returns>
 <remarks>
 Patrick Johnson
 3/15/2009
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.FromStringToType``1(System.String)">
 <summary>
 Get a value as the given Type of T from a string value, 
 but replacing DBNull or Null values with the default value 
 of the given Type T, e.g. if a string value of "" is passed in
 and (Of Integer) is specified, 0 will be returned as an Integer. 
 This will allow for strongly typing String based Win/Web Forms such 
 as DropDownList.SelectedValue or TextBox.Text values when passed into
 the BO or DA layers that are correctly using typed parameters.
 </summary>
 <typeparam name="T">Target Type</typeparam>
 <param name="strSource"></param>
 <returns>Value or the Default Value of the given Type of T.</returns>
 <remarks>
 03/20/2009
 Justin Bailey
 
 06/06/2009 JPB: Changed DefaultValue to tReplacementValue and updated comments for clarity.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.FromStringToType``1(System.String,``0)">
 <summary>
 Get a value as the given Type of T from a string value, 
 but replacing DBNull or Null values with the default value 
 of the given Type T, e.g. if a string value of "" is passed in
 and (Of Integer) is specified, 0 will be returned as an Integer. 
 This will allow for strongly typing String based Win/Web Forms such 
 as DropDownList.SelectedValue or TextBox.Text values when passed into
 the BO or DA layers that are correctly using typed parameters.
 </summary>
 <param name="strSource"></param>
 <param name="tReplacementValue"></param>
 <typeparam name="T"></typeparam>
 <remarks>
 03/20/2009
 Justin Bailey
 
 06/06/2009 JPB: Changed DefaultValue to tReplacementValue and updated comments for clarity.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.FromStringToType``1(System.String,``0,System.Object)">
 <summary>
 Get a value as the given Type of T from a string value, 
 but replacing DBNull or Null values with the default value 
 of the given Type T, e.g. if a string value of "" is passed in
 and (Of Integer) is specified, 0 will be returned as an Integer. 
 This will allow for strongly typing String based Win/Web Forms such 
 as DropDownList.SelectedValue or TextBox.Text values when passed into
 the BO or DA layers that are correctly using typed parameters.
 </summary>
 <remarks>
 03/20/2009
 Justin Bailey
 Using the new FromXYZ suggested by James Brooks.
 Aiming to address the problem of WebForm controls
 typically being String typed and needing to get into
 the intended type wihtout IIF or IF statements.
 
 06/06/2009 JPB: Changed DefaultValue to tReplacementValue and updated comments for clarity.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.SubstringSafeSelect(System.String,System.Int32,System.Int32)">
 <summary>
 Pass in the EDI segment string, the starting position of the part you want to look for and 
 the length of that part.  If the segment is missing that part, then send back nothing.  Zero based.
 </summary>
 <param name="strSegment"></param>
 <param name="intStartIndex">Beginning position in the segment to parse.</param>
 <param name="intLength">Maximum Length of the field to be parsed</param>
 <returns></returns>
 <remarks>
 10/28/2009
 James Fitzgerald
 Created.  Pulled from my Ford Dealer Import in C#.  I'll admit that 
 Brooks came up with this idea first, but I didn't know it when I created mine.
 Neither one of our functions were in the library. Now it is.
 
 10/28/2009 16:48
 James Fitzgerald 
 Moved from utility and changed name from SubstringEDISegment.
 </remarks>
</member>
<member name="M:Vascor.Library.Extensions.GetXML(System.Data.DataTable)">
 <summary>
 Returns a table as XML string
 </summary>
 <param name="dtb"></param>
 <returns></returns>
 <remarks>
 Horacio Torres
 01/21/2010
 Copied from StasLib and renamed to GetXML
 </remarks>
</member>
<member name="M:Vascor.Library.mObj.ToXMLString(System.Data.DataTable)">
 <summary>
 
 </summary>
 <param name="dtb"></param>
 <returns></returns>
 <remarks>
 01/21/2010
 Horacio Torres
 Copied to modExtensions an renamed to GetXML
 Adding Obsolete atribute
 </remarks>
</member>
</members>
</doc>
