Skip to content

Commit

Permalink
Merge pull request Blazor-Diagrams#401 from robertmclaws/patch-1
Browse files Browse the repository at this point in the history
Update ReflectionUtils.cs
  • Loading branch information
zHaytam authored Feb 24, 2024
2 parents 46d9800 + 79aa9de commit 1d62ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/SharedDemo/ReflectionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private static IEnumerable<PossibleOption> ExtractPossibleOptions(Type type, str

var typeName = FormatPropertyType(property.PropertyType);
var @default = propertyValue?.ToString();
var description = property.GetCustomAttribute<DescriptionAttribute>().Description;
var description = property.GetCustomAttribute<DescriptionAttribute>()?.Description;
yield return new PossibleOption(name, typeName, @default, description);
}
}
Expand Down

0 comments on commit 1d62ed9

Please sign in to comment.