Skip to content

Commit

Permalink
Avoid using target-typed new
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-petersen committed Oct 16, 2024
1 parent 8bf5219 commit c63fe0a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ namespace {{packageName}}.Client
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ internal object Deserialize(RestResponse response, Type type)
/// Represents a factory for creating and caching instances of RestClient.
/// </summary>
internal class RestClientFactory {
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new();
private ConcurrentDictionary<Uri, RestClient> Clients { get; } = new ConcurrentDictionary<Uri, RestClient>();

/// <summary>
/// Creates an RestClient instance with the specified base URL and options. Caches clients by
Expand Down

0 comments on commit c63fe0a

Please sign in to comment.