mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Use file scoped namespace declarations
This commit is contained in:

committed by
Phil Scott

parent
1dbaf50935
commit
ec1188b837
@ -35,4 +35,4 @@ namespace Spectre.Console.Tests
|
||||
return assembly.GetManifestResourceStream(resourceName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -27,4 +27,4 @@ namespace Spectre.Console.Cli
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -17,4 +17,4 @@ namespace Spectre.Console
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -41,4 +41,4 @@ namespace Spectre.Console.Tests
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -54,4 +54,4 @@ namespace Spectre.Console.Testing
|
||||
return TypeResolverFactory?.Invoke(Registrations, Instances);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Spectre.Console.Cli;
|
||||
@ -30,8 +30,8 @@ namespace Spectre.Console.Testing
|
||||
|
||||
if (_registrations.TryGetValue(type, out var registrations))
|
||||
{
|
||||
return registrations.Count == 0
|
||||
? null
|
||||
return registrations.Count == 0
|
||||
? null
|
||||
: Activator.CreateInstance(type);
|
||||
}
|
||||
|
||||
|
@ -11,4 +11,4 @@ namespace Spectre.Console.Tests
|
||||
IssueId = issueId;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user