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
- BitSet.cs
- WebPartConnectionCollection.cs
- HorizontalAlignConverter.cs
- Operand.cs
- StrokeNodeOperations.cs
- TextBoxBase.cs
- SeekableReadStream.cs
- VirtualizingStackPanel.cs
- ParameterElement.cs
- DispatcherExceptionEventArgs.cs
- UiaCoreTypesApi.cs
- EditorBrowsableAttribute.cs
- ColumnResizeUndoUnit.cs
- DefaultPropertyAttribute.cs
- WindowsIdentity.cs
- Type.cs
- Errors.cs
- Single.cs
- OdbcEnvironment.cs
- TextParagraph.cs
- RtfControlWordInfo.cs
- Vector3DKeyFrameCollection.cs
- DataColumnChangeEvent.cs
- InputGestureCollection.cs
- TabControlEvent.cs
- TryCatchDesigner.xaml.cs
- SerialErrors.cs
- TextReader.cs
- ChtmlTextWriter.cs
- DomainLiteralReader.cs
- FontStyleConverter.cs
- ConfigurationPermission.cs
- recordstate.cs
- SchemaSetCompiler.cs
- BrowserCapabilitiesFactory.cs
- DateTimeFormat.cs
- Propagator.Evaluator.cs
- DesignerVerbCollection.cs
- SSmlParser.cs
- CapacityStreamGeometryContext.cs
- XmlWrappingReader.cs
- InputProcessorProfiles.cs
- HotSpot.cs
- RectangleGeometry.cs
- RelationshipDetailsRow.cs
- WebPartTransformerCollection.cs
- SelectionItemPattern.cs
- JsonEnumDataContract.cs
- BuilderPropertyEntry.cs
- TabletDeviceInfo.cs
- DispatcherOperation.cs
- DataBoundControlDesigner.cs
- InternalRelationshipCollection.cs
- EncoderFallback.cs
- HttpRequestCacheValidator.cs
- ListenDesigner.cs
- XPathNodeList.cs
- LabelAutomationPeer.cs
- SortExpressionBuilder.cs
- ToolStripOverflowButton.cs
- StrokeSerializer.cs
- FileDataSourceCache.cs
- Int64KeyFrameCollection.cs
- ErrorWebPart.cs
- StrongNameUtility.cs
- BindingValueChangedEventArgs.cs
- AttributeAction.cs
- Formatter.cs
- SystemKeyConverter.cs
- TokenCreationException.cs
- LambdaCompiler.Expressions.cs
- CodeDefaultValueExpression.cs
- FrameworkContentElement.cs
- ExceptionHelpers.cs
- ADMembershipProvider.cs
- Point3D.cs
- PropertyIdentifier.cs
- LinkUtilities.cs
- sqlinternaltransaction.cs
- UnsupportedPolicyOptionsException.cs
- ColorTransformHelper.cs
- TextServicesDisplayAttribute.cs
- Control.cs
- LateBoundBitmapDecoder.cs
- CodePageEncoding.cs
- EventLogPermissionEntryCollection.cs
- PropertyPathWorker.cs
- Component.cs
- MethodBuilder.cs
- DocumentAutomationPeer.cs
- WebResourceAttribute.cs
- ApplyImportsAction.cs
- GroupStyle.cs
- SpinWait.cs
- DeferredReference.cs
- BasicExpandProvider.cs
- PersonalizableTypeEntry.cs
- TypeUtil.cs
- ZipIOModeEnforcingStream.cs
- CodeDOMProvider.cs