Class VirtualItemAdapter<T>
Adapter class to simplify operations on virtual items. 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 VirtualItemAdapter<T>
Type Parameters
Name | Description |
---|---|
T | The type of item stored in the virtual storage. |
Constructors
VirtualItemAdapter(VirtualStorage<T>)
Initializes a new instance of the VirtualItemAdapter<T> class.
Declaration
public VirtualItemAdapter(VirtualStorage<T> storage)
Parameters
Type | Name | Description |
---|---|---|
VirtualStorage<T> | storage | The virtual storage instance. |
Properties
this[VirtualPath, bool]
Gets or sets the virtual item corresponding to the specified path.
Declaration
public VirtualItem<T> this[VirtualPath path, bool followLinks = true] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
VirtualPath | path | The path of the item. |
bool | followLinks | A flag indicating whether to follow links. |
Property Value
Type | Description |
---|---|
VirtualItem<T> | The VirtualItem<T> corresponding to the specified path. |