Class RelativeFilepath
Inheritance
System.Object
RelativeFilepath
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CoreLibrary
Assembly: CoreLibrary.dll
Syntax
public class RelativeFilepath
Constructors
RelativeFilepath(String)
Contructor for relative filepath.
Declaration
public RelativeFilepath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Absolute filepath. |
RelativeFilepath(String, String)
JSON constructor for serializing/deserializing.
Declaration
[JsonConstructor]
public RelativeFilepath(string filepathrelative, string filepathrelativeto)
Parameters
Type | Name | Description |
---|---|---|
System.String | filepathrelative | Relative filepath. |
System.String | filepathrelativeto | Path that the relation is to. |
Fields
FilepathRelative
Declaration
public string FilepathRelative
Field Value
Type | Description |
---|---|
System.String |
FilepathRelativeTo
Declaration
public string FilepathRelativeTo
Field Value
Type | Description |
---|---|
System.String |
Methods
GetPath()
Returns the absolute filepath of the relative path file.
Declaration
public string GetPath()
Returns
Type | Description |
---|---|
System.String | Absolute filepath. |
SetRelation(String)
Set filepath to be related to a filepath.
Declaration
public void SetRelation(string relativeTo)
Parameters
Type | Name | Description |
---|---|---|
System.String | relativeTo | Path that the relation is to. |