Class CoreExtensions
Inheritance
System.Object
CoreExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:ClickTwice.Publisher.Core
Assembly:ClickTwice.Publisher.Core.dll
Syntax
public static class CoreExtensions
Methods
|
Improve this Doc
View Source
Add<T>(List<T>, T[])
Declaration
public static void Add<T>(this List<T> list, params T[] items)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T> |
list |
|
T[] |
items |
|
Type Parameters
|
Improve this Doc
View Source
Copy(DirectoryInfo, String, Boolean, Boolean)
Declaration
public static void Copy(this DirectoryInfo sourceDir, string destDirPath, bool copySubDirs, bool overwrite = true)
Parameters
Type |
Name |
Description |
System.IO.DirectoryInfo |
sourceDir |
|
System.String |
destDirPath |
|
System.Boolean |
copySubDirs |
|
System.Boolean |
overwrite |
|
Exceptions
Type |
Condition |
System.IO.DirectoryNotFoundException |
Source directory does not exist.
|
|
Improve this Doc
View Source
EnumerateFilesForExtensions(DirectoryInfo, Boolean, String[])
Declaration
public static IEnumerable<FileInfo> EnumerateFilesForExtensions(this DirectoryInfo dir, bool match, params string[] extensions)
Parameters
Type |
Name |
Description |
System.IO.DirectoryInfo |
dir |
|
System.Boolean |
match |
|
System.String[] |
extensions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.IO.FileInfo> |
|
|
Improve this Doc
View Source
GetFilesByExtensions(DirectoryInfo, String[])
Declaration
public static IEnumerable<FileInfo> GetFilesByExtensions(this DirectoryInfo dir, params string[] extensions)
Parameters
Type |
Name |
Description |
System.IO.DirectoryInfo |
dir |
|
System.String[] |
extensions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.IO.FileInfo> |
|
|
Improve this Doc
View Source
GetFilesExceptExtensions(DirectoryInfo, String[])
Declaration
public static IEnumerable<FileInfo> GetFilesExceptExtensions(this DirectoryInfo dir, params string[] extensions)
Parameters
Type |
Name |
Description |
System.IO.DirectoryInfo |
dir |
|
System.String[] |
extensions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.IO.FileInfo> |
|
|
Improve this Doc
View Source
Declaration
public static List<HandlerResponse> ProcessHandlers(this IEnumerable<IInputHandler> handlers, string directoryPath, Action<string> logCallback)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IInputHandler> |
handlers |
|
System.String |
directoryPath |
|
System.Action<System.String> |
logCallback |
|
Returns
|
Improve this Doc
View Source
ProcessHandlers(IEnumerable<IOutputHandler>, String, Action<String>)
Declaration
public static List<HandlerResponse> ProcessHandlers(this IEnumerable<IOutputHandler> handlers, string directoryPath, Action<string> logCallback)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IOutputHandler> |
handlers |
|
System.String |
directoryPath |
|
System.Action<System.String> |
logCallback |
|
Returns
|
Improve this Doc
View Source
Property(List<String>, String)
Declaration
public static string Property(this List<string> propList, string property)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.String> |
propList |
|
System.String |
property |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Rename(FileInfo, String)
Declaration
public static void Rename(this FileInfo file, string newName)
Parameters
Type |
Name |
Description |
System.IO.FileInfo |
file |
|
System.String |
newName |
|
|
Improve this Doc
View Source
ToTargets(PublishBehaviour)
Declaration
public static List<string> ToTargets(this PublishBehaviour behaviour)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|