using System; namespace Avalonia.Platform.Storage; /// /// Provides access to the content-related properties of an item (like a file or folder). /// public class StorageItemProperties { public StorageItemProperties( ulong? size = null, DateTimeOffset? dateCreated = null, DateTimeOffset? dateModified = null) { Size = size; DateCreated = dateCreated; DateModified = dateModified; } /// /// Gets the size of the file in bytes. /// /// /// Can be null if property is not available. /// public ulong? Size { get; } /// /// Gets the date and time that the current folder was created. /// /// /// Can be null if property is not available. /// public DateTimeOffset? DateCreated { get; } /// /// Gets the date and time of the last time the file was modified. /// /// /// Can be null if property is not available. /// public DateTimeOffset? DateModified { get; } }