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
- ConsumerConnectionPoint.cs
- EDesignUtil.cs
- InvokeBinder.cs
- CustomAttributeSerializer.cs
- Encoder.cs
- FamilyTypefaceCollection.cs
- VirtualizingStackPanel.cs
- StringSorter.cs
- ClonableStack.cs
- ReaderWriterLockSlim.cs
- ValidatorAttribute.cs
- StyleSheetRefUrlEditor.cs
- IndexerReference.cs
- XmlWrappingReader.cs
- TrackingQuery.cs
- ScopeElementCollection.cs
- StyleXamlTreeBuilder.cs
- XsltCompileContext.cs
- PropertyChangeTracker.cs
- OdbcConnectionPoolProviderInfo.cs
- ButtonBaseAdapter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- IdentifierService.cs
- DataGridAddNewRow.cs
- ScriptIgnoreAttribute.cs
- CookieParameter.cs
- DnsEndpointIdentity.cs
- HttpResponseInternalBase.cs
- TransformDescriptor.cs
- DescendantQuery.cs
- shaper.cs
- MetadataItem_Static.cs
- ImageList.cs
- Logging.cs
- SqlDataSourceQueryEditorForm.cs
- CheckBox.cs
- PrintControllerWithStatusDialog.cs
- MenuEventArgs.cs
- RootBuilder.cs
- SecurityManager.cs
- FieldToken.cs
- ResourceExpressionBuilder.cs
- ObsoleteAttribute.cs
- StrongNameKeyPair.cs
- OracleFactory.cs
- TdsParserSessionPool.cs
- ApplicationManager.cs
- PrintDocument.cs
- Vector3D.cs
- StringUtil.cs
- Receive.cs
- SizeValueSerializer.cs
- Executor.cs
- DragEvent.cs
- HtmlTitle.cs
- SafeArrayTypeMismatchException.cs
- AsyncOperation.cs
- FieldNameLookup.cs
- FormatException.cs
- IsolatedStorageFile.cs
- PassportPrincipal.cs
- NativeMethods.cs
- IgnoreSection.cs
- XhtmlTextWriter.cs
- DrawingContextDrawingContextWalker.cs
- DataTableMappingCollection.cs
- Compiler.cs
- COMException.cs
- DictionaryKeyPropertyAttribute.cs
- Lease.cs
- AccessedThroughPropertyAttribute.cs
- SingleAnimationUsingKeyFrames.cs
- CachedFontFace.cs
- FixedSOMPage.cs
- HijriCalendar.cs
- CompiledAction.cs
- OneOf.cs
- WizardPanel.cs
- SqlInternalConnectionTds.cs
- ShellProvider.cs
- SspiWrapper.cs
- AspCompat.cs
- BitmapImage.cs
- InstanceDataCollectionCollection.cs
- IssuanceLicense.cs
- ResourceReferenceExpression.cs
- AvTraceDetails.cs
- WebScriptClientGenerator.cs
- TransactionValidationBehavior.cs
- BaseCodePageEncoding.cs
- DnsPermission.cs
- HttpDigestClientElement.cs
- Pkcs9Attribute.cs
- HandledEventArgs.cs
- NameObjectCollectionBase.cs
- UIntPtr.cs
- GeometryDrawing.cs
- SendingRequestEventArgs.cs
- ItemsPanelTemplate.cs
- CustomAttributeBuilder.cs