parent
681533e06c
commit
78e90d7f04
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
|
|
@ -13,7 +14,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
public class FormCollection : IFormCollection
|
||||
{
|
||||
public static readonly FormCollection Empty = new FormCollection();
|
||||
#if DNXCORE50
|
||||
#if DOTNET5_4
|
||||
private static readonly string[] EmptyKeys = Array.Empty<string>();
|
||||
private static readonly StringValues[] EmptyValues = Array.Empty<StringValues>();
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
/// </summary>
|
||||
public class HeaderDictionary : IHeaderDictionary
|
||||
{
|
||||
#if DNXCORE50
|
||||
#if DOTNET5_4
|
||||
private static readonly string[] EmptyKeys = Array.Empty<string>();
|
||||
private static readonly StringValues[] EmptyValues = Array.Empty<StringValues>();
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
public class QueryCollection : IQueryCollection
|
||||
{
|
||||
public static readonly QueryCollection Empty = new QueryCollection();
|
||||
#if DNXCORE50
|
||||
#if DOTNET5_4
|
||||
private static readonly string[] EmptyKeys = Array.Empty<string>();
|
||||
private static readonly StringValues[] EmptyValues = Array.Empty<StringValues>();
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
public class RequestCookieCollection : IRequestCookieCollection
|
||||
{
|
||||
public static readonly RequestCookieCollection Empty = new RequestCookieCollection();
|
||||
#if DNXCORE50
|
||||
#if DOTNET5_4
|
||||
private static readonly string[] EmptyKeys = Array.Empty<string>();
|
||||
#else
|
||||
private static readonly string[] EmptyKeys = new string[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue