Skip to content

Commit

Permalink
chore: update IPropertyDescriptor derived methods
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed Feb 5, 2025
1 parent 62acf92 commit da1ec00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Docfx.YamlSerialization/TypeInspectors/EmitTypeInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ public EmitPropertyDescriptor(EmitPropertyDescriptorSkeleton skeleton, ITypeReso

public Type? TypeOverride { get; set; }

public bool AllowNulls { get; set; }

public bool Required { get; set; }

public Type? ConverterType { get; set; }

public T GetCustomAttribute<T>() where T : Attribute => (T)_skeleton.GetCustomAttribute(typeof(T));

public IObjectDescriptor Read(object target)
Expand Down Expand Up @@ -516,6 +522,12 @@ public ExtensiblePropertyDescriptor(

public Type? TypeOverride { get; set; }

public bool AllowNulls { get; set; }

public bool Required { get; set; }

public Type? ConverterType { get; set; }

public T? GetCustomAttribute<T>() where T : Attribute => null;

public IObjectDescriptor Read(object target)
Expand Down

0 comments on commit da1ec00

Please sign in to comment.