From d1174f3f8979321a9182925df460e07e08157b41 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Tue, 13 Nov 2012 03:47:31 +0900 Subject: partial import of ca05fdeb565e: Reactive Extensions OSS V1.0 --- .../Reactive/Linq/IQbservable.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Rx.NET/System.Reactive.Interfaces/Reactive/Linq/IQbservable.cs (limited to 'Rx.NET/System.Reactive.Interfaces/Reactive/Linq/IQbservable.cs') diff --git a/Rx.NET/System.Reactive.Interfaces/Reactive/Linq/IQbservable.cs b/Rx.NET/System.Reactive.Interfaces/Reactive/Linq/IQbservable.cs new file mode 100644 index 0000000..3d0b610 --- /dev/null +++ b/Rx.NET/System.Reactive.Interfaces/Reactive/Linq/IQbservable.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + +#if !NO_EXPRESSIONS +using System.Linq.Expressions; + +namespace System.Reactive.Linq +{ + /// + /// Provides functionality to evaluate queries against a specific data source wherein the type of the data is known. + /// + /// + /// The type of the data in the data source. + /// This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics. + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Qbservable", Justification = "What a pleasure to write 'by design' here.")] + public interface IQbservable< +#if !NO_VARIANCE + out +#endif + T> : IQbservable, IObservable + { + } + + /// + /// Provides functionality to evaluate queries against a specific data source wherein the type of the data is not specified. + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Qbservable", Justification = "What a pleasure to write 'by design' here.")] + public interface IQbservable + { + /// + /// Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQbservable is executed. + /// + Type ElementType { get; } + + /// + /// Gets the expression tree that is associated with the instance of IQbservable. + /// + Expression Expression { get; } + + /// + /// Gets the query provider that is associated with this data source. + /// + IQbservableProvider Provider { get; } + } +} +#endif \ No newline at end of file -- cgit v1.2.3