Struct DataNull
- Namespace
- Cobilas.GodotEngine.Utility.IO
- Assembly
- com.cobilas.godot.utility.dll
Represents a null or empty data information structure that implements the IDataInfo interface.
public readonly struct DataNull : IDataInfo, IDisposable, IFormattable
- Implements
- Inherited Members
Remarks
This structure serves as a null object pattern implementation for data information, providing default values for all properties and safe no-op operations.
Properties
Attributes
Gets the attributes associated with the data item.
public ArchiveAttributes Attributes { get; }
Property Value
- ArchiveAttributes
The archive attributes defining the item's properties and permissions.
FullName
Gets the full path and name of the data item.
public string FullName { get; }
Property Value
- string
The complete path including the item name.
GetCreationTime
Gets the creation time of the data item in local time.
public DateTime GetCreationTime { get; }
Property Value
- DateTime
The creation date and time in local time.
GetCreationTimeUtc
Gets the creation time of the data item in Coordinated Universal Time (UTC).
public DateTime GetCreationTimeUtc { get; }
Property Value
- DateTime
The creation date and time in UTC.
GetLastAccessTime
Gets the last access time of the data item in local time.
public DateTime GetLastAccessTime { get; }
Property Value
- DateTime
The last access date and time in local time.
GetLastAccessTimeUtc
Gets the last access time of the data item in Coordinated Universal Time (UTC).
public DateTime GetLastAccessTimeUtc { get; }
Property Value
- DateTime
The last access date and time in UTC.
GetLastWriteTime
Gets the last write time of the data item in local time.
public DateTime GetLastWriteTime { get; }
Property Value
- DateTime
The last write date and time in local time.
GetLastWriteTimeUtc
Gets the last write time of the data item in Coordinated Universal Time (UTC).
public DateTime GetLastWriteTimeUtc { get; }
Property Value
- DateTime
The last write date and time in UTC.
IsGodotRoot
Gets a value indicating whether the data item is located at the Godot engine root.
public bool IsGodotRoot { get; }
Property Value
- bool
true if the item is at the Godot root; otherwise, false.
IsInternal
Gets a value indicating whether the data item is internal to the application or archive.
public bool IsInternal { get; }
Property Value
- bool
true if the item is internal; otherwise, false.
Name
Gets the name of the data item without the path.
public string Name { get; }
Property Value
- string
The name of the data item.
Null
Gets the singleton instance of the null data item.
public static DataNull Null { get; }
Property Value
Parent
Gets the parent data item of the current item.
public IDataInfo Parent { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ToString(string, IFormatProvider)
Formats the value of the current instance using the specified format.
public string ToString(string format, IFormatProvider formatProvider)
Parameters
formatstringThe format to use.-or- A null reference (
Nothingin Visual Basic) to use the default format defined for the type of the IFormattable implementation.formatProviderIFormatProviderThe provider to use to format the value.-or- A null reference (
Nothingin Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Returns
- string
The value of the current instance in the specified format.