// 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.Linq; using System.Runtime.CompilerServices; namespace System.Web.Http { /// /// Represents an containing zero or one entities. Use together with an /// [EnableQuery] from the System.Web.Http.OData or System.Web.OData namespace. /// /// The type of the data in the data source. [TypeForwardedFrom("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] public sealed class SingleResult : SingleResult { /// /// Initializes a new instance of the class. /// /// The containing zero or one entities. public SingleResult(IQueryable queryable) : base(queryable) { } /// /// The containing zero or one entities. /// public new IQueryable Queryable { get { return base.Queryable as IQueryable; } } } }