We need you! We're working hard on the next version of Developer Fusion -
Let us know what you think we should be up to!
-
Expand
Microsoft.Win32
-
Expand
Microsoft.Win32.SafeHandles
-
Expand
System
-
Expand
System.Runtime.Hosting
-
Expand
System.Runtime.InteropServices
-
Expand
System.Runtime.CompilerServices
-
Expand
System.Collections
-
Expand
System.Collections.Generic
-
Expand
System.Collections.ObjectModel
-
Expand
System.Configuration.Assemblies
-
Expand
System.Diagnostics
-
Expand
System.Diagnostics.CodeAnalysis
-
Expand
System.Diagnostics.SymbolStore
-
Expand
System.Globalization
-
Expand
System.IO
-
Expand
System.IO.IsolatedStorage
-
Expand
System.Reflection
-
Expand
System.Reflection.Cache
-
Expand
System.Reflection.Emit
-
Expand
__ExceptionInfo
-
Expand
__ExceptionInstance
-
Expand
__FixupData
-
Expand
AssemblyBuilder
-
Expand
AssemblyBuilderAccess
-
Expand
AssemblyBuilderData
-
Expand
ConstructorBuilder
-
Expand
ConstructorOnTypeBuilderInstantiation
-
Expand
CustAttr
-
Expand
CustomAttributeBuilder
-
Expand
DestroyScout
-
Expand
DynamicILGenerator
-
Expand
DynamicILInfo
-
Expand
DynamicMethod
-
Expand
DynamicResolver
-
Expand
DynamicScope
-
Expand
EmptyCAHolder
-
Expand
Entry
-
Expand
EnumBuilder
-
Expand
EventBuilder
-
Expand
EventToken
-
Expand
FieldBuilder
-
Expand
FieldOnTypeBuilderInstantiation
-
Expand
FieldToken
-
Expand
FlowControl
-
Expand
Format
-
Expand
GenericMethodInfo
-
Expand
GenericTypeParameterBuilder
-
Expand
ILGenerator
-
Expand
Label
-
Expand
LineNumberInfo
-
Expand
LocalBuilder
-
Expand
LocalSymInfo
-
Expand
MethodBuilder
-
Expand
MethodBuilderInstantiation
-
Expand
MethodOnTypeBuilderInstantiation
-
Expand
MethodRental
-
Expand
MethodToken
-
Expand
ModuleBuilder
-
Expand
ModuleBuilderData
-
Expand
OpCode
-
Expand
OpCodes
-
Expand
OpCodeType
-
Expand
OperandType
-
Expand
PackingSize
-
Expand
ParameterBuilder
-
Expand
ParameterToken
-
Expand
PEFileKinds
-
Expand
PropertyBuilder
-
Expand
PropertyToken
-
Expand
REDocument
-
Expand
ResWriterData
-
Expand
RTDynamicMethod
-
Expand
ScopeAction
-
Expand
ScopeTree
-
Expand
SecurityControlFlags
-
Expand
SignatureHelper
-
Expand
SignatureToken
-
Expand
StackBehaviour
-
Expand
StringToken
-
Expand
SymbolMethod
-
Expand
SymbolType
-
Assembly()
-
AssemblyQualifiedName()
-
BaseType()
-
FormCompoundType(char, Type, int)
-
FullName()
-
GetArrayRank()
-
GetAttributeFlagsImpl()
-
GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type, ParameterModifier)
-
GetConstructors(BindingFlags)
-
GetCustomAttributes(bool)
-
GetCustomAttributes(Type, bool)
-
GetElementType()
-
GetEvent(string, BindingFlags)
-
GetEvents()
-
GetEvents(BindingFlags)
-
GetField(string, BindingFlags)
-
GetFields(BindingFlags)
-
GetInterface(string, bool)
-
GetInterfaceMap(Type)
-
GetInterfaces()
-
GetMember(string, MemberTypes, BindingFlags)
-
GetMembers(BindingFlags)
-
GetMethodImpl(string, BindingFlags, Binder, CallingConventions, Type, ParameterModifier)
-
GetMethods(BindingFlags)
-
GetNestedType(string, BindingFlags)
-
GetNestedTypes(BindingFlags)
-
GetProperties(BindingFlags)
-
GetPropertyImpl(string, BindingFlags, Binder, Type, Type, ParameterModifier)
-
GUID()
-
HasElementTypeImpl()
-
InvokeMember(string, BindingFlags, Binder, object, object, ParameterModifier, CultureInfo, string)
-
IsArrayImpl()
-
IsByRefImpl()
-
IsCOMObjectImpl()
-
IsDefined(Type, bool)
-
IsPointerImpl()
-
IsPrimitiveImpl()
-
IsSzArray()
-
IsValueTypeImpl()
-
MakeArrayType()
-
MakeArrayType(int)
-
MakeByRefType()
-
MakePointerType()
-
MetadataTokenInternal()
-
Module()
-
Name()
-
Namespace()
-
SetBounds(int, int)
-
SetElementType(Type)
-
SetFormat(char, int, int)
-
SymbolType(TypeKind)
-
ToString()
-
TypeHandle()
-
UnderlyingSystemType()
-
Expand
SymCustomAttr
-
Expand
TypeBuilder
-
Expand
TypeBuilderInstantiation
-
Expand
TypeKind
-
Expand
TypeNameBuilder
-
Expand
TypeToken
-
Expand
UnmanagedMarshal
-
Expand
VarArgMethod
-
Expand
System.Resources
-
Expand
System.Runtime
-
Expand
System.Runtime.InteropServices.Expando
-
Expand
System.Runtime.ConstrainedExecution
-
Expand
System.Runtime.Remoting.Activation
-
Expand
System.Runtime.Remoting.Messaging
-
Expand
System.Runtime.Remoting.Channels
-
Expand
System.Runtime.Remoting.Lifetime
-
Expand
System.Runtime.Remoting
-
Expand
System.Runtime.Remoting.Contexts
-
Expand
System.Runtime.Remoting.Proxies
-
Expand
System.Runtime.Remoting.Metadata
-
Expand
System.Runtime.Remoting.Metadata.W3cXsd2001
-
Expand
System.Runtime.Remoting.Services
-
Expand
System.Runtime.Serialization
-
Expand
System.Runtime.Serialization.Formatters
-
Expand
System.Runtime.Serialization.Formatters.Binary
-
Expand
System.Runtime.Versioning
-
Expand
System.Security
-
Expand
System.Security.Cryptography
-
Expand
System.Security.Cryptography.X509Certificates
-
Expand
System.Security.Permissions
-
Expand
System.Security.Policy
-
Expand
System.Security.Principal
-
Expand
System.Security.Util
-
Expand
System.Text
-
Expand
System.Threading
-
Expand
System.Runtime.Remoting.Channels.Http
-
Expand
System.Runtime.Remoting.Channels.Tcp
-
Expand
System.Runtime.Remoting.MetadataServices
-
Expand
System.Runtime.Serialization.Formatters.Soap.Xml
-
Expand
System.Runtime.Serialization.Formatters.Soap
-
Expand
Microsoft.Tools.Caspol
-
Expand
Microsoft.Tools.Build
-
Expand
Microsoft.CSharp
-
Expand
System.CodeDom
-
Expand
System.CodeDom.Compiler
-
Expand
System.Collections.Specialized
-
Expand
System.ComponentModel
-
Expand
System.ComponentModel.Design
-
Expand
System.ComponentModel.Design.Serialization
-
Expand
System.Configuration
-
Expand
System.Web
-
Expand
System.Configuration.Provider
-
Expand
System.Configuration.Internal
-
Expand
System.Internal
-
Expand
System.Windows.Forms
-
Expand
System.Net
-
Expand
System.Net.Sockets
-
Expand
System.Net.NetworkInformation
-
Expand
System.Net.ComImports
-
Expand
System.Net.Security
-
Expand
System.Net.Cache
-
Expand
System.Net.Configuration
-
Expand
System.Text.RegularExpressions
-
Expand
System.Tools
-
Expand
System.IO.Compression
-
Expand
System.IO.Ports
-
Expand
System.Security.AccessControl
-
Expand
System.Xml
-
Expand
System.Xml.XPath.DataBinding
-
Expand
System.Xml.Schema
-
Expand
System.Xml.Serialization
-
Expand
System.Xml.Serialization.Advanced
-
Expand
System.Xml.Serialization.Configuration
-
Expand
System.Xml.XPath
-
Expand
System.Xml.Xsl
-
Expand
System.Xml.Xsl.IlGen
-
Expand
System.Xml.Xsl.Qil
-
Expand
System.Xml.Xsl.Runtime
-
Expand
System.Xml.Xsl.XPath
-
Expand
System.Xml.Xsl.Xslt
-
Expand
System.Xml.Xsl.XsltOld
-
Expand
System.Xml.Xsl.XsltOld.Debugger
-
Expand
Microsoft.JScript
-
Expand
Microsoft.Vsa
-
Expand
Microsoft.JScript.Vsa
- namespace System.Reflection.Emit
- {
- using System.Runtime.InteropServices;
- using System;
- using System.Reflection;
- using CultureInfo = System.Globalization.CultureInfo;
-
- [Serializable()]
- internal enum TypeKind
- {
- IsArray = 1,
- IsPointer = 2,
- IsByRef = 3
- }
-
-
- internal sealed class SymbolType : Type
- {
- #region Static Members
- static internal Type FormCompoundType(char[] bFormat, Type baseType, int curIndex)
- {
-
-
-
-
-
-
-
-
-
-
-
- SymbolType symbolType;
- int iLowerBound;
- int iUpperBound;
-
- if (bFormat == null || curIndex == bFormat.Length) {
-
- return baseType;
- }
-
-
-
-
- if (bFormat[curIndex] == '&') {
-
-
- symbolType = new SymbolType(TypeKind.IsByRef);
- symbolType.SetFormat(bFormat, curIndex, 1);
- curIndex++;
-
- if (curIndex != bFormat.Length)
-
- throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat"));
-
- symbolType.SetElementType(baseType);
- return symbolType;
- }
-
- if (bFormat[curIndex] == '[') {
-
- symbolType = new SymbolType(TypeKind.IsArray);
- int startIndex = curIndex;
- curIndex++;
-
- iLowerBound = 0;
- iUpperBound = -1;
-
-
-
-
-
- while (bFormat[curIndex] != ']') {
- if (bFormat[curIndex] == '*') {
- symbolType.m_isSzArray = false;
- curIndex++;
- }
-
- if ((bFormat[curIndex] >= '0' && bFormat[curIndex] <= '9') || bFormat[curIndex] == '-') {
- bool isNegative = false;
- if (bFormat[curIndex] == '-') {
- isNegative = true;
- curIndex++;
- }
-
-
- while (bFormat[curIndex] >= '0' && bFormat[curIndex] <= '9') {
- iLowerBound = iLowerBound * 10;
- iLowerBound += bFormat[curIndex] - '0';
- curIndex++;
- }
-
- if (isNegative) {
- iLowerBound = 0 - iLowerBound;
- }
-
-
- iUpperBound = iLowerBound - 1;
-
- }
- if (bFormat[curIndex] == '.') {
-
-
-
- curIndex++;
- if (bFormat[curIndex] != '.') {
-
- throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat"));
- }
-
- curIndex++;
-
- if ((bFormat[curIndex] >= '0' && bFormat[curIndex] <= '9') || bFormat[curIndex] == '-') {
- bool isNegative = false;
- iUpperBound = 0;
- if (bFormat[curIndex] == '-') {
- isNegative = true;
- curIndex++;
- }
-
-
- while (bFormat[curIndex] >= '0' && bFormat[curIndex] <= '9') {
- iUpperBound = iUpperBound * 10;
- iUpperBound += bFormat[curIndex] - '0';
- curIndex++;
- }
- if (isNegative) {
- iUpperBound = 0 - iUpperBound;
- }
- if (iUpperBound < iLowerBound) {
-
-
- throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat"));
- }
- }
- }
-
- if (bFormat[curIndex] == ',') {
-
-
- curIndex++;
- symbolType.SetBounds(iLowerBound, iUpperBound);
-
-
- iLowerBound = 0;
- iUpperBound = -1;
- }
- else if (bFormat[curIndex] != ']') {
- throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat"));
- }
- }
-
-
- symbolType.SetBounds(iLowerBound, iUpperBound);
-
-
- curIndex++;
-
- symbolType.SetFormat(bFormat, startIndex, curIndex - startIndex);
-
-
- symbolType.SetElementType(baseType);
- return FormCompoundType(bFormat, symbolType, curIndex);
- }
- else if (bFormat[curIndex] == '*') {
-
-
- symbolType = new SymbolType(TypeKind.IsPointer);
- symbolType.SetFormat(bFormat, curIndex, 1);
- curIndex++;
- symbolType.SetElementType(baseType);
- return FormCompoundType(bFormat, symbolType, curIndex);
- }
-
- return null;
- }
-
- #endregion
-
- #region Data Members
- internal TypeKind m_typeKind;
- internal Type m_baseType;
- internal int m_cRank;
-
-
-
- internal int[] m_iaLowerBound;
- internal int[] m_iaUpperBound;
-
- private char[] m_bFormat;
-
- private bool m_isSzArray = true;
- #endregion
-
- #region Constructor
- internal SymbolType(TypeKind typeKind)
- {
- m_typeKind = typeKind;
- m_iaLowerBound = new int[4];
- m_iaUpperBound = new int[4];
- }
-
- #endregion
-
- #region Internal Members
- internal void SetElementType(Type baseType)
- {
- if (baseType == null)
- throw new ArgumentNullException("baseType");
-
- m_baseType = baseType;
- }
-
- internal void SetBounds(int lower, int upper)
- {
-
-
- if (lower != 0 || upper != -1)
- m_isSzArray = false;
-
- if (m_iaLowerBound.Length <= m_cRank) {
-
- int[] iaTemp = new int[m_cRank * 2];
- Array.Copy(m_iaLowerBound, iaTemp, m_cRank);
- m_iaLowerBound = iaTemp;
- Array.Copy(m_iaUpperBound, iaTemp, m_cRank);
- m_iaUpperBound = iaTemp;
- }
-
- m_iaLowerBound[m_cRank] = lower;
- m_iaUpperBound[m_cRank] = upper;
- m_cRank++;
- }
-
- internal void SetFormat(char[] bFormat, int curIndex, int length)
- {
-
-
- char[] bFormatTemp = new char[length];
- Array.Copy(bFormat, curIndex, bFormatTemp, 0, length);
- m_bFormat = bFormatTemp;
- }
- #endregion
-
- #region Type Overrides
- internal override bool IsSzArray {
- get {
- if (m_cRank > 1)
- return false;
-
- return m_isSzArray;
- }
- }
-
- public override Type MakePointerType()
- {
- return SymbolType.FormCompoundType((new string(m_bFormat) + "*").ToCharArray(), m_baseType, 0);
- }
-
- public override Type MakeByRefType()
- {
- return SymbolType.FormCompoundType((new string(m_bFormat) + "&").ToCharArray(), m_baseType, 0);
- }
-
- public override Type MakeArrayType()
- {
- return SymbolType.FormCompoundType((new string(m_bFormat) + "[]").ToCharArray(), m_baseType, 0);
- }
-
- public override Type MakeArrayType(int rank)
- {
- if (rank <= 0)
- throw new IndexOutOfRangeException();
-
- string szrank = "";
- if (rank == 1) {
- szrank = "*";
- }
- else {
- for (int i = 1; i < rank; i++)
- szrank += ",";
- }
-
- string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank);
-
- SymbolType st = SymbolType.FormCompoundType((new string(m_bFormat) + s).ToCharArray(), m_baseType, 0) as SymbolType;
- return st;
- }
-
- public override int GetArrayRank()
- {
- if (!IsArray)
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
-
- return m_cRank;
- }
-
- internal override int MetadataTokenInternal {
- get {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
- }
-
- public override Guid GUID {
- get {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
- }
-
- public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override Module Module {
- get {
- Type baseType;
-
- for (baseType = m_baseType; baseType is SymbolType; baseType = ((SymbolType)baseType).m_baseType)
- ;
-
- return baseType.Module;
- }
- }
- public override Assembly Assembly {
- get {
- Type baseType;
-
- for (baseType = m_baseType; baseType is SymbolType; baseType = ((SymbolType)baseType).m_baseType)
- ;
-
- return baseType.Assembly;
- }
- }
-
- public override RuntimeTypeHandle TypeHandle {
- get {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
- }
-
- public override string Name {
- get {
- Type baseType;
- string sFormat = new string(m_bFormat);
-
- for (baseType = m_baseType; baseType is SymbolType; baseType = ((SymbolType)baseType).m_baseType)
- sFormat = new string(((SymbolType)baseType).m_bFormat) + sFormat;
-
- return baseType.Name + sFormat;
- }
- }
-
- public override string FullName {
- get { return TypeNameBuilder.ToString(this, TypeNameBuilder.Format.FullName); }
- }
-
- public override string AssemblyQualifiedName {
- get { return TypeNameBuilder.ToString(this, TypeNameBuilder.Format.AssemblyQualifiedName); }
- }
-
- public override string ToString()
- {
- return TypeNameBuilder.ToString(this, TypeNameBuilder.Format.ToString);
- }
-
- public override string Namespace {
- get { return m_baseType.Namespace; }
- }
-
- public override Type BaseType {
-
- get { return typeof(System.Array); }
- }
-
- protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- [System.Runtime.InteropServices.ComVisible(true)]
- public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override FieldInfo GetField(string name, BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override FieldInfo[] GetFields(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override Type GetInterface(string name, bool ignoreCase)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override Type[] GetInterfaces()
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override EventInfo[] GetEvents()
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override Type[] GetNestedTypes(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override Type GetNestedType(string name, BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- [System.Runtime.InteropServices.ComVisible(true)]
- public override InterfaceMapping GetInterfaceMap(Type interfaceType)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override EventInfo[] GetEvents(BindingFlags bindingAttr)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- protected override TypeAttributes GetAttributeFlagsImpl()
- {
-
- Type baseType;
- for (baseType = m_baseType; baseType is SymbolType; baseType = ((SymbolType)baseType).m_baseType)
- ;
- return baseType.Attributes;
- }
-
- protected override bool IsArrayImpl()
- {
- return m_typeKind == TypeKind.IsArray;
- }
-
- protected override bool IsPointerImpl()
- {
- return m_typeKind == TypeKind.IsPointer;
- }
-
- protected override bool IsByRefImpl()
- {
- return m_typeKind == TypeKind.IsByRef;
- }
-
- protected override bool IsPrimitiveImpl()
- {
- return false;
- }
-
- protected override bool IsValueTypeImpl()
- {
- return false;
- }
-
- protected override bool IsCOMObjectImpl()
- {
- return false;
- }
-
- public override Type GetElementType()
- {
- return m_baseType;
- }
-
- protected override bool HasElementTypeImpl()
- {
- return m_baseType != null;
- }
-
- public override Type UnderlyingSystemType {
-
- get { return this; }
- }
-
- public override object[] GetCustomAttributes(bool inherit)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override object[] GetCustomAttributes(Type attributeType, bool inherit)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
-
- public override bool IsDefined(Type attributeType, bool inherit)
- {
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
- }
- #endregion
- }
- }