Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / AddIn / AddIn / System / Addin / MiniReflection / MiniCustomAttributeInfo.cs / 1305376 / MiniCustomAttributeInfo.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: MiniParameterInfo
**
** Purpose: Represents a method parameter.
**
===========================================================*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.AddIn.MiniReflection.MetadataReader;
using System.Diagnostics.Contracts;
namespace System.AddIn.MiniReflection
{
[Serializable]
internal sealed class MiniCustomAttributeInfo
{
private String _typeName;
private MiniCustomAttributeFixedArgInfo[] _fixedArgs;
private MiniCustomAttributeNamedArgInfo[] _namedArgs;
public MiniCustomAttributeInfo(String typeName, MiniCustomAttributeFixedArgInfo[] fixedArgs,
MiniCustomAttributeNamedArgInfo[] namedArgs)
{
_typeName = typeName;
_fixedArgs = fixedArgs;
_namedArgs = namedArgs;
}
/*
public String TypeName
{
get { return _typeName; }
}
*/
public MiniCustomAttributeFixedArgInfo[] FixedArgs {
get { return _fixedArgs; }
}
public MiniCustomAttributeNamedArgInfo[] NamedArgs {
get { return _namedArgs; }
}
}
[Serializable]
internal sealed class MiniCustomAttributeNamedArgInfo
{
private String _argName;
private CorElementType _type;
private Object _value;
public MiniCustomAttributeNamedArgInfo(CorElementType type, String name, Object value)
{
_argName = name;
_type = type;
_value = value;
}
public Object Value {
get { return _value; }
}
public String Name
{
get {return _argName; }
}
/*
public CorElementType CorElementType
{
get { return _type; }
}
*/
}
[Serializable]
internal sealed class MiniCustomAttributeFixedArgInfo
{
private Object _value;
public MiniCustomAttributeFixedArgInfo(Object value)
{
_value = value;
}
public Object Value {
get { return _value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: MiniParameterInfo
**
** Purpose: Represents a method parameter.
**
===========================================================*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.AddIn.MiniReflection.MetadataReader;
using System.Diagnostics.Contracts;
namespace System.AddIn.MiniReflection
{
[Serializable]
internal sealed class MiniCustomAttributeInfo
{
private String _typeName;
private MiniCustomAttributeFixedArgInfo[] _fixedArgs;
private MiniCustomAttributeNamedArgInfo[] _namedArgs;
public MiniCustomAttributeInfo(String typeName, MiniCustomAttributeFixedArgInfo[] fixedArgs,
MiniCustomAttributeNamedArgInfo[] namedArgs)
{
_typeName = typeName;
_fixedArgs = fixedArgs;
_namedArgs = namedArgs;
}
/*
public String TypeName
{
get { return _typeName; }
}
*/
public MiniCustomAttributeFixedArgInfo[] FixedArgs {
get { return _fixedArgs; }
}
public MiniCustomAttributeNamedArgInfo[] NamedArgs {
get { return _namedArgs; }
}
}
[Serializable]
internal sealed class MiniCustomAttributeNamedArgInfo
{
private String _argName;
private CorElementType _type;
private Object _value;
public MiniCustomAttributeNamedArgInfo(CorElementType type, String name, Object value)
{
_argName = name;
_type = type;
_value = value;
}
public Object Value {
get { return _value; }
}
public String Name
{
get {return _argName; }
}
/*
public CorElementType CorElementType
{
get { return _type; }
}
*/
}
[Serializable]
internal sealed class MiniCustomAttributeFixedArgInfo
{
private Object _value;
public MiniCustomAttributeFixedArgInfo(Object value)
{
_value = value;
}
public Object Value {
get { return _value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Interlocked.cs
- WebBrowserSiteBase.cs
- IndicCharClassifier.cs
- LinkLabelLinkClickedEvent.cs
- UpdatePanelTrigger.cs
- Line.cs
- SoapRpcServiceAttribute.cs
- ConfigUtil.cs
- JavaScriptString.cs
- MarkupObject.cs
- RemotingServices.cs
- ConstructorNeedsTagAttribute.cs
- Psha1DerivedKeyGenerator.cs
- SoapFault.cs
- CancellationHandlerDesigner.cs
- ThreadExceptionEvent.cs
- SpecularMaterial.cs
- TreeViewAutomationPeer.cs
- RawUIStateInputReport.cs
- TextUtf8RawTextWriter.cs
- DatagridviewDisplayedBandsData.cs
- RuntimeCompatibilityAttribute.cs
- ValuePatternIdentifiers.cs
- AttachedPropertyMethodSelector.cs
- DetectRunnableInstancesTask.cs
- ProxyAssemblyNotLoadedException.cs
- SqlParameterCollection.cs
- DataGridViewSelectedRowCollection.cs
- ViewBox.cs
- Nullable.cs
- ProcessModule.cs
- MethodAccessException.cs
- DuplicateWaitObjectException.cs
- HttpHandlerActionCollection.cs
- UserPreferenceChangingEventArgs.cs
- RowSpanVector.cs
- DbConnectionPoolGroupProviderInfo.cs
- StrictAndMessageFilter.cs
- RegexCompiler.cs
- TextServicesHost.cs
- RolePrincipal.cs
- HtmlAnchor.cs
- FormsAuthenticationConfiguration.cs
- HtmlMeta.cs
- DependencyObjectType.cs
- tibetanshape.cs
- ModuleBuilder.cs
- Button.cs
- ComponentResourceManager.cs
- ComplexType.cs
- CodeThrowExceptionStatement.cs
- BlurBitmapEffect.cs
- GeneralTransform2DTo3D.cs
- ArgumentNullException.cs
- FileSystemEnumerable.cs
- PropertiesTab.cs
- AnnotationService.cs
- MetadataArtifactLoaderCompositeResource.cs
- ObjectParameter.cs
- InvariantComparer.cs
- SQLInt16Storage.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ReadOnlyObservableCollection.cs
- Model3DGroup.cs
- MachineKeySection.cs
- SqlNodeAnnotation.cs
- DateTimeParse.cs
- RegisteredArrayDeclaration.cs
- IPEndPoint.cs
- ApplicationException.cs
- TreeViewHitTestInfo.cs
- ListViewTableCell.cs
- CornerRadius.cs
- SchemaDeclBase.cs
- CodeIdentifier.cs
- Utils.cs
- SimpleBitVector32.cs
- SqlOuterApplyReducer.cs
- FastEncoderWindow.cs
- CommonRemoteMemoryBlock.cs
- DetailsViewDeleteEventArgs.cs
- ToolStripLabel.cs
- RectangleHotSpot.cs
- DockPattern.cs
- elementinformation.cs
- RemotingAttributes.cs
- StreamBodyWriter.cs
- XmlDocumentType.cs
- ConnectionPoint.cs
- SqlAggregateChecker.cs
- FileEnumerator.cs
- ArraySortHelper.cs
- TraceUtility.cs
- CodeParameterDeclarationExpression.cs
- PrimitiveType.cs
- DataContext.cs
- TreeBuilder.cs
- AbstractSvcMapFileLoader.cs
- StoryFragments.cs
- TypeForwardedToAttribute.cs