Skip to content

Commit

Permalink
init property type registry in static constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Aug 24, 2024
1 parent 7f549de commit cc0b962
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions UAssetAPI/MainSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ public static class MainSerializer
/// </summary>
internal static IDictionary<string, RegistryEntry> PropertyTypeRegistry
{
get
{
InitializePropertyTypeRegistry();
return _propertyTypeRegistry;
}
get => _propertyTypeRegistry;
set => _propertyTypeRegistry = value; // I hope you know what you're doing!
}

static MainSerializer()
{
InitializePropertyTypeRegistry();
}

private static IEnumerable<Assembly> GetDependentAssemblies(Assembly analyzedAssembly)
{
return AppDomain.CurrentDomain.GetAssemblies().Where(a => GetNamesOfAssembliesReferencedBy(a).Contains(analyzedAssembly.FullName));
Expand Down

0 comments on commit cc0b962

Please sign in to comment.