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