Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- LinearKeyFrames.cs
- ImageButton.cs
- Matrix3DConverter.cs
- TransformProviderWrapper.cs
- MSG.cs
- Convert.cs
- PropertyContainer.cs
- Point3D.cs
- FormsAuthentication.cs
- FeatureSupport.cs
- ContainsRowNumberChecker.cs
- MatrixValueSerializer.cs
- TypographyProperties.cs
- CLRBindingWorker.cs
- DefaultClaimSet.cs
- TypeSystem.cs
- UserControlCodeDomTreeGenerator.cs
- RepeaterItemEventArgs.cs
- MachineKeyConverter.cs
- DataViewListener.cs
- WebPartEditVerb.cs
- RuleAction.cs
- PriorityItem.cs
- HtmlEmptyTagControlBuilder.cs
- SqlConnectionHelper.cs
- WebServiceClientProxyGenerator.cs
- WizardPanel.cs
- SqlExpander.cs
- CapiNative.cs
- Exceptions.cs
- DesignerAdapterAttribute.cs
- QueryResponse.cs
- diagnosticsswitches.cs
- ImportCatalogPart.cs
- DataListDesigner.cs
- XPathNodeList.cs
- TypeConverters.cs
- InkCanvas.cs
- HtmlTable.cs
- TextTreeFixupNode.cs
- HyperLinkColumn.cs
- ObjectDataSourceFilteringEventArgs.cs
- ImageMapEventArgs.cs
- TaiwanLunisolarCalendar.cs
- SqlDelegatedTransaction.cs
- AspNetPartialTrustHelpers.cs
- Transactions.cs
- DataStreamFromComStream.cs
- DetailsViewInsertedEventArgs.cs
- DataGridColumnHeadersPresenter.cs
- XmlReaderSettings.cs
- ScrollData.cs
- LinkButton.cs
- Stream.cs
- AlignmentYValidation.cs
- SimplePropertyEntry.cs
- TextRunCacheImp.cs
- panel.cs
- DataListCommandEventArgs.cs
- ImageConverter.cs
- FontUnitConverter.cs
- SiteMapDataSourceView.cs
- SqlFunctions.cs
- COM2ExtendedUITypeEditor.cs
- UriGenerator.cs
- DefaultEvaluationContext.cs
- RegexBoyerMoore.cs
- WriteTimeStream.cs
- PropertyItem.cs
- KnownColorTable.cs
- Comparer.cs
- RemotingAttributes.cs
- AdornerHitTestResult.cs
- AuthenticatedStream.cs
- VisualStates.cs
- PageWrapper.cs
- odbcmetadatacollectionnames.cs
- DataSvcMapFileSerializer.cs
- Int32Storage.cs
- TempFiles.cs
- BinaryObjectWriter.cs
- BevelBitmapEffect.cs
- FontCacheUtil.cs
- SqlInternalConnection.cs
- StrongNameIdentityPermission.cs
- BamlLocalizableResourceKey.cs
- UnknownWrapper.cs
- UserNameSecurityToken.cs
- RowUpdatingEventArgs.cs
- PageAsyncTask.cs
- InitializationEventAttribute.cs
- CommandExpr.cs
- FormView.cs
- coordinatorfactory.cs
- wmiprovider.cs
- WinInetCache.cs
- EmbeddedObject.cs
- DataServiceSaveChangesEventArgs.cs
- HttpCookie.cs
- DataTableTypeConverter.cs