Skip to content

Commit

Permalink
Define SeqNumType with global using
Browse files Browse the repository at this point in the history
h/t to grantb for pointing out that `global using` now exists, so we
don't need to do a `using` per file to get typedef-like aliasing
  • Loading branch information
mgatny committed May 12, 2023
1 parent 90e4bd6 commit d462e4e
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 13 deletions.
2 changes: 0 additions & 2 deletions QuickFIXn/Fields/Fields.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// This is a generated file. Don't edit it directly!

using System;
using SeqNumType = System.UInt64;
using SeqNumFieldType = QuickFix.Fields.ULongField;

namespace QuickFix.Fields
{
Expand Down
1 change: 0 additions & 1 deletion QuickFIXn/FileStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Text;
using QuickFix.Util;
using SeqNumType = System.UInt64;

namespace QuickFix
{
Expand Down
2 changes: 2 additions & 0 deletions QuickFIXn/GlobalUsing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using SeqNumType = System.UInt64;
global using SeqNumFieldType = QuickFix.Fields.ULongField;
1 change: 0 additions & 1 deletion QuickFIXn/HttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Threading;
using System.Web;
using QuickFix;
using SeqNumType = System.UInt64;

namespace Acceptor
{
Expand Down
1 change: 0 additions & 1 deletion QuickFIXn/IMessageStore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System;
using SeqNumType = System.UInt64;

namespace QuickFix
{
Expand Down
1 change: 0 additions & 1 deletion QuickFIXn/MemoryStore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using SeqNumType = System.UInt64;

namespace QuickFix
{
Expand Down
4 changes: 1 addition & 3 deletions QuickFIXn/ResendRange.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using SeqNumType = System.UInt64;

namespace QuickFix
namespace QuickFix
{
public class ResendRange
{
Expand Down
1 change: 0 additions & 1 deletion QuickFIXn/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Threading;
using QuickFix.Fields;
using QuickFix.Fields.Converters;
using SeqNumType = System.UInt64;

namespace QuickFix
{
Expand Down
1 change: 0 additions & 1 deletion QuickFIXn/SessionState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using MessagesBySeqNum = System.Collections.Generic.Dictionary<ulong, QuickFix.Message>;
using SeqNumType = System.UInt64;

namespace QuickFix
{
Expand Down
2 changes: 2 additions & 0 deletions UnitTests/GlobalUsing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using SeqNumType = System.UInt64;
global using SeqNumFieldType = QuickFix.Fields.ULongField;
1 change: 0 additions & 1 deletion UnitTests/SessionStateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.IO;
using System.Threading;
using SeqNumType = System.UInt64;

namespace UnitTests
{
Expand Down
1 change: 0 additions & 1 deletion UnitTests/SessionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Text.RegularExpressions;
using NUnit.Framework;
using System.Threading;
using SeqNumType = System.UInt64;

namespace UnitTests
{
Expand Down

0 comments on commit d462e4e

Please sign in to comment.