Class FileAndType
Namespace:Microsoft.DocAsCode.Plugins
Assembly:Microsoft.DocAsCode.Plugins.dll
Syntax
public sealed class FileAndType : IEquatable<FileAndType>
Constructors
FileAndType(String, String, DocumentType, String, String)
Declaration
[JsonConstructor]
public FileAndType(string baseDir, string file, DocumentType type, string sourceDir = null, string destinationDir = null)
Parameters
Properties
BaseDir
Declaration
[JsonProperty("baseDir")]
public string BaseDir { get; }
Property Value
DestinationDir
Declaration
[JsonProperty("destinationDir")]
public string DestinationDir { get; set; }
Property Value
File
Declaration
[JsonProperty("file")]
public string File { get; }
Property Value
FullPath
Declaration
[JsonIgnore]
public string FullPath { get; }
Property Value
SourceDir
Declaration
[JsonProperty("sourceDir")]
public string SourceDir { get; set; }
Property Value
StringComparer
Declaration
[JsonIgnore]
public StringComparer StringComparer { get; }
Property Value
Type
Declaration
[JsonProperty("type")]
public DocumentType Type { get; }
Property Value
Methods
ChangeBaseDir(String)
Declaration
public FileAndType ChangeBaseDir(string baseDir)
Parameters
Type |
Name |
Description |
String |
baseDir |
|
Returns
ChangeFile(String)
Declaration
public FileAndType ChangeFile(string file)
Parameters
Type |
Name |
Description |
String |
file |
|
Returns
ChangeType(DocumentType)
Declaration
public FileAndType ChangeType(DocumentType type)
Parameters
Returns
Equals(FileAndType)
Declaration
public bool Equals(FileAndType other)
Parameters
Returns
Implements
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
Equality(FileAndType, FileAndType)
Declaration
public static bool operator ==(FileAndType left, FileAndType right)
Parameters
Returns
Inequality(FileAndType, FileAndType)
Declaration
public static bool operator !=(FileAndType left, FileAndType right)
Parameters
Returns
Extension Methods