gaben
gaben
CC#
Created by gaben on 12/4/2023 in #help
Add attribute to property in base class from derived class when base property already has attribute
I want the derived class's property to have both the added attribute and any that were in the base class:
public abstract class BaseClass
{
[SomeAttribute]
public virtual string SomeProperty { get; set; } = "";
}

public class DerivedClass : BaseClass
{
[SomeOtherAttribute]
public string SomeProperty { get; set; } = "";
}
public abstract class BaseClass
{
[SomeAttribute]
public virtual string SomeProperty { get; set; } = "";
}

public class DerivedClass : BaseClass
{
[SomeOtherAttribute]
public string SomeProperty { get; set; } = "";
}
DerivedClass -> SomeProperty should have both the SomeAttribute and SomeOtherAttribute attributes
3 replies
CC#
Created by gaben on 10/17/2023 in #help
❔ Blazor - MarkupString rendering <img> tag w/ base64 image encoding as text
No description
4 replies