Class VirtualSymbolicLinkAdapter<T>
Adapter class to simplify operations on virtual symbolic links. Reduces the need for casting and simplifies code, allowing users to easily manage specific node types.
Inherited Members
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public class VirtualSymbolicLinkAdapter<T>
Type Parameters
Name | Description |
---|---|
T | The type of item stored in the virtual storage. |
Constructors
VirtualSymbolicLinkAdapter(VirtualStorage<T>)
Initializes a new instance of the VirtualSymbolicLinkAdapter<T> class.
Declaration
public VirtualSymbolicLinkAdapter(VirtualStorage<T> storage)
Parameters
Type | Name | Description |
---|---|---|
VirtualStorage<T> | storage | The virtual storage instance. |
Properties
this[VirtualPath]
Gets or sets the virtual symbolic link corresponding to the specified path.
Declaration
public VirtualSymbolicLink this[VirtualPath path] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
VirtualPath | path | The path of the symbolic link. |
Property Value
Type | Description |
---|---|
VirtualSymbolicLink | The VirtualSymbolicLink corresponding to the specified path. |
Remarks
This adapter directly operates on the symbolic link itself and does not resolve the link to its target. Ensure that this behavior is desired, as any operations will affect the symbolic link rather than the linked item.