Skip to content

Commit

Permalink
Исключить повторную инициализацию (к EvilBeaver#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Rm committed Oct 2, 2023
1 parent 0b0ed0c commit ed95c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OneScript.StandardLibrary/Xml/XmlGlobalFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ private static readonly Dictionary<Type, EnumerationContext> _allowedEnums

private XmlGlobalFunctions(IGlobalsManager mgr)
{
if (_allowedEnums.Count > 0)
return;

foreach (var e in new[] {
(typeof(ClrEnumValueWrapper<AllowedSignEnum>), typeof(AllowedSignEnum)),
(typeof(ClrEnumValueWrapper<AllowedLengthEnum>), typeof(AllowedLengthEnum)),
Expand Down

0 comments on commit ed95c67

Please sign in to comment.