Skip to content

Commit

Permalink
rm assembly name inside defualt value string (Vide.SettingsList)
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech committed Dec 9, 2024
1 parent b58f17a commit 4a912e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public static object GetDefaultValue( Compilation compilation, IPropertySymbol p
defaultValue = HandleEnums( property, constantValue.Value );
}
// e.g.: Animate.OptionsName global::Microsoft.Extensions.Options.Options.DefaultName
if(defaultValue is string stringValue)
defaultValue = stringValue.Replace( @"global::", "");
if ( defaultValue is string stringValue )
{
defaultValue = stringValue.Replace( @"global::", "").Replace( $"{compilation.AssemblyName}.", "" );
}
}

defaultValue ??= GetDefaultValueOfType( property.Type );
Expand Down

0 comments on commit 4a912e2

Please sign in to comment.