Skip to content

Commit 5f9e645

Browse files
Update DocsProvider.cs
1 parent 4f90b8d commit 5f9e645

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Code/Plugin/Commands/HelpSystem/DocsProvider.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,20 +709,20 @@ public static bool GetPropertiesForType(string typeName, out string response)
709709

710710
var sb = new StringBuilder($"> Properties for {typeName} value\n");
711711
var sortedProps = props.OrderBy(kvp => kvp.Key).ToList();
712-
var normalProps = sortedProps.Where(p => !p.Value.IsUnsafe).ToList();
713-
var unsafeProps = sortedProps.Where(p => p.Value.IsUnsafe).ToList();
712+
var custom = sortedProps.Where(p => !p.Value.IsReflected).ToList();
713+
var reflected = sortedProps.Where(p => p.Value.IsReflected).ToList();
714714

715715
sb.AppendLine("\n--- Base properties ---");
716-
foreach (var (name, info) in unsafeProps)
716+
foreach (var (name, info) in reflected)
717717
{
718718
var returnTypeFriendlyName = info.ReturnType.ToString();
719719
sb.AppendLine($"> {name} ({returnTypeFriendlyName}){(string.IsNullOrEmpty(info.Description) ? "" : $" - {info.Description}")}");
720720
}
721721

722-
if (normalProps.Count > 0)
722+
if (custom.Count > 0)
723723
{
724724
sb.AppendLine("\n--- Custom SER properties ---");
725-
foreach (var (name, info) in normalProps)
725+
foreach (var (name, info) in custom)
726726
{
727727
var returnTypeFriendlyName = info.ReturnType.ToString();
728728
sb.AppendLine($"> {name} ({returnTypeFriendlyName}){(string.IsNullOrEmpty(info.Description) ? "" : $" - {info.Description}")}");

0 commit comments

Comments
 (0)