Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Markup / MarkupExtensionReturnTypeAttribute.cs / 1 / MarkupExtensionReturnTypeAttribute.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2006
//
// File: MarkupExtensionReturnTypeAttribute.cs
//
// Description: Describes what type a markup extension can return.
//
// Created: 11/17/2005 RRelyea
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class MarkupExtensionReturnTypeAttribute : Attribute
{
///
///
public MarkupExtensionReturnTypeAttribute(Type returnType)
{
_returnType = returnType;
}
public MarkupExtensionReturnTypeAttribute(Type returnType, Type expressionType)
{
_returnType = returnType;
_expressionType = expressionType;
}
///
///
public MarkupExtensionReturnTypeAttribute()
{
}
///
///
public Type ReturnType
{
get { return _returnType; }
}
public Type ExpressionType
{
get { return _expressionType; }
}
private Type _returnType;
private Type _expressionType;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2006
//
// File: MarkupExtensionReturnTypeAttribute.cs
//
// Description: Describes what type a markup extension can return.
//
// Created: 11/17/2005 RRelyea
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class MarkupExtensionReturnTypeAttribute : Attribute
{
///
///
public MarkupExtensionReturnTypeAttribute(Type returnType)
{
_returnType = returnType;
}
public MarkupExtensionReturnTypeAttribute(Type returnType, Type expressionType)
{
_returnType = returnType;
_expressionType = expressionType;
}
///
///
public MarkupExtensionReturnTypeAttribute()
{
}
///
///
public Type ReturnType
{
get { return _returnType; }
}
public Type ExpressionType
{
get { return _expressionType; }
}
private Type _returnType;
private Type _expressionType;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsStatusBar.cs
- TagPrefixInfo.cs
- SqlFacetAttribute.cs
- HttpResponseInternalBase.cs
- BitmapFrame.cs
- SqlDeflator.cs
- QueryCursorEventArgs.cs
- WindowsListViewItemStartMenu.cs
- FastEncoderStatics.cs
- HTMLTextWriter.cs
- DuplicateWaitObjectException.cs
- CompensatableTransactionScopeActivityDesigner.cs
- AssemblyEvidenceFactory.cs
- Expression.cs
- NamespaceList.cs
- IsolatedStorageFile.cs
- HtmlInputCheckBox.cs
- StoreItemCollection.cs
- PageDeviceFont.cs
- ViewLoader.cs
- ListBox.cs
- WinFormsComponentEditor.cs
- RijndaelManaged.cs
- DataGridViewCellEventArgs.cs
- OneToOneMappingSerializer.cs
- HWStack.cs
- HttpConfigurationSystem.cs
- ConnectionManagementElement.cs
- MethodCallConverter.cs
- RequestNavigateEventArgs.cs
- LayoutTable.cs
- SubMenuStyle.cs
- OleDbParameterCollection.cs
- SQLBinaryStorage.cs
- TextProperties.cs
- MatchingStyle.cs
- AsmxEndpointPickerExtension.cs
- ValidatorCompatibilityHelper.cs
- WrappedOptions.cs
- X500Name.cs
- SessionStateContainer.cs
- Oid.cs
- SrgsOneOf.cs
- FontResourceCache.cs
- ReadOnlyObservableCollection.cs
- HttpContextServiceHost.cs
- _NegoStream.cs
- MsmqProcessProtocolHandler.cs
- DataReaderContainer.cs
- WebEventCodes.cs
- IncomingWebRequestContext.cs
- NetworkCredential.cs
- Switch.cs
- ProfileEventArgs.cs
- clipboard.cs
- HttpServerVarsCollection.cs
- WindowInteropHelper.cs
- PipelineModuleStepContainer.cs
- SafeReadContext.cs
- HostedTcpTransportManager.cs
- RepeaterDataBoundAdapter.cs
- FormsAuthenticationCredentials.cs
- XmlBinaryReaderSession.cs
- DataBindingList.cs
- NotificationContext.cs
- EventLogLink.cs
- login.cs
- StringUtil.cs
- X509ChainElement.cs
- ConfigXmlAttribute.cs
- TextTabProperties.cs
- XAMLParseException.cs
- EventLogPropertySelector.cs
- SQLBinary.cs
- Facet.cs
- NativeMethods.cs
- EmptyReadOnlyDictionaryInternal.cs
- DataGridViewRow.cs
- ConfigurationSectionGroup.cs
- TableStyle.cs
- DBConnectionString.cs
- ExceptionValidationRule.cs
- MsmqOutputSessionChannel.cs
- DelayedRegex.cs
- DataControlFieldCollection.cs
- CommandManager.cs
- Exceptions.cs
- ButtonBaseDesigner.cs
- SessionStateItemCollection.cs
- COM2PropertyDescriptor.cs
- GroupStyle.cs
- CodeCatchClause.cs
- SemaphoreSecurity.cs
- HtmlWindow.cs
- ConfigurationLocationCollection.cs
- DynamicExpression.cs
- WebPartCloseVerb.cs
- DeferredElementTreeState.cs
- EmptyQuery.cs
- TraceHandler.cs