Created
September 13, 2023 16:34
-
-
Save MineshS/c6a3aa815348cb43ed4cbc2ce78baeda to your computer and use it in GitHub Desktop.
Image Property Attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Netcel.Optimizely.Domain.Attributes; | |
[AttributeUsage(AttributeTargets.Property)] | |
public class ImageSizesAttribute : Attribute | |
{ | |
public string Sizes { get; set; } | |
} | |
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] | |
public class ImageSizeAttribute : Attribute | |
{ | |
public bool IsDefault { get; set; } = false; | |
public int Width { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment