Click or drag to resize
GenericExtensions Class
Contains extensions for objects not directly related to MetadirectoryServices components, such as strings and DateTimes
Inheritance Hierarchy
SystemObject
  Lithnet.MetadirectoryServicesGenericExtensions

Namespace: Lithnet.MetadirectoryServices
Assembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax
public static class GenericExtensions

The GenericExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendWithCommaSeparator
Appends two string together with a comma and a space
Public methodStatic memberAppendWithSeparator
Appends two string together with a comma and a space
Public methodStatic memberContainsSameElementsT
Gets a value indicating whether two enumerations contain the same elements, even if they are in different orders
Public methodStatic memberConvertToUnsecureString
Converts a secure string back to its standard string representation
Public methodStatic memberToAttributeType
Converts an ExtendedAttributeType value to its equivalent MetadirectoryServices AttributeType
Public methodStatic memberToCommaSeparatedString
Converts an enumeration of strings into a comma separated list
Public methodStatic memberToExtendedAttributeType
Converts an AttributeType value to its equivalent ExtendedAttributeType value
Public methodStatic memberToList
Converts a ValueCollection to a generic list of objects
Public methodStatic memberToNewLineSeparatedString
Converts an enumeration of strings into a comma separated list
Public methodStatic memberToResourceManagementServiceDateFormat(DateTime)
Converts a date time to the ISO 8601 date string required by the Resource Management Service
Public methodStatic memberToResourceManagementServiceDateFormat(DateTime, Boolean, Boolean)
Converts a date time to the ISO 8601 date string required by the Resource Management Service
Public methodStatic memberToSeparatedString
Converts an enumeration of strings into a comma separated list
Public methodStatic memberToSmartString
Gets an informative string representation of an object
Public methodStatic memberToSmartStringOrEmptyString
Gets an informative string representation of an object
Public methodStatic memberToSmartStringOrNull
Gets an informative string representation of an object
Public methodStatic memberTruncate

Truncates a DateTime to a specified resolution.

A convenient source for resolution is TimeSpan.TicksPerXXXX constants.

Public methodStatic memberTruncateString
Truncates a string to the specified length
Top
Fields
  NameDescription
Public fieldStatic memberResourceManagementServiceDateFormat
A .NET custom format string that represents the ISO8601 date format that is used by the FIM Service
Public fieldStatic memberResourceManagementServiceDateFormatZeroedMilliseconds
A .NET custom format string that represents the ISO8601 date format that is used by the FIM Service, but has the milliseconds component set to '0'
Top
See Also