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
- InputEventArgs.cs
- MgmtConfigurationRecord.cs
- FormViewPageEventArgs.cs
- CodeTypeMember.cs
- EncryptedKey.cs
- HttpHandlerActionCollection.cs
- TextRangeAdaptor.cs
- SettingsPropertyValue.cs
- SrgsElementFactoryCompiler.cs
- CacheModeValueSerializer.cs
- DataBoundControlParameterTarget.cs
- DispatchChannelSink.cs
- WebPartTracker.cs
- ParameterToken.cs
- EventLogPermissionEntryCollection.cs
- InputGestureCollection.cs
- DBConnectionString.cs
- SafeNativeMethods.cs
- BindingContext.cs
- KeyValueConfigurationElement.cs
- PrintingPermissionAttribute.cs
- TypeLibConverter.cs
- FormatterServices.cs
- Point3DCollectionValueSerializer.cs
- SessionPageStateSection.cs
- Bits.cs
- MemberHolder.cs
- TimeIntervalCollection.cs
- CodeAttachEventStatement.cs
- RawMouseInputReport.cs
- SettingsAttributeDictionary.cs
- TouchFrameEventArgs.cs
- _NegotiateClient.cs
- RelationshipEntry.cs
- SqlDataSource.cs
- CodeCommentStatementCollection.cs
- WindowsRebar.cs
- LeafCellTreeNode.cs
- InteropAutomationProvider.cs
- recordstatefactory.cs
- DecoderExceptionFallback.cs
- IISUnsafeMethods.cs
- XmlReflectionImporter.cs
- SchemaImporter.cs
- SerializationHelper.cs
- XmlSubtreeReader.cs
- LogExtent.cs
- ConstructorNeedsTagAttribute.cs
- NewItemsContextMenuStrip.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SchemaConstraints.cs
- OracleCommand.cs
- ListSurrogate.cs
- PhoneCall.cs
- DocumentViewerAutomationPeer.cs
- CopyOnWriteList.cs
- PropertyCondition.cs
- BitmapSourceSafeMILHandle.cs
- CustomTypeDescriptor.cs
- ScriptComponentDescriptor.cs
- Block.cs
- _Semaphore.cs
- RootAction.cs
- PerfCounters.cs
- WebPartEditVerb.cs
- ComboBox.cs
- StrokeDescriptor.cs
- odbcmetadatacolumnnames.cs
- ICspAsymmetricAlgorithm.cs
- ListParaClient.cs
- AssemblyHelper.cs
- CultureMapper.cs
- OdbcDataReader.cs
- DataGridViewColumn.cs
- Utils.cs
- DataServiceKeyAttribute.cs
- ConstNode.cs
- CompilerScope.cs
- IPeerNeighbor.cs
- ClientBase.cs
- XmlToDatasetMap.cs
- XPathSelfQuery.cs
- WindowsFormsHelpers.cs
- ToolboxItemFilterAttribute.cs
- DependencyPropertyValueSerializer.cs
- AuthenticationManager.cs
- SettingsPropertyValueCollection.cs
- ConfigurationManagerHelper.cs
- PointLightBase.cs
- XmlReflectionMember.cs
- FileCodeGroup.cs
- ECDiffieHellman.cs
- GeneratedCodeAttribute.cs
- EventSchemaTraceListener.cs
- SQLStringStorage.cs
- XmlSerializableWriter.cs
- Journal.cs
- FtpRequestCacheValidator.cs
- VariableQuery.cs
- SystemKeyConverter.cs