-// MemberTypes.cs\r
-//\r
-// This code was automatically generated from\r
-// ECMA CLI XML Library Specification.\r
-// Generator: libgen.xsl\r
-// Source file: all.xml\r
-// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml\r
-//\r
-// (C) 2001 Ximian, Inc. http://www.ximian.com\r
-\r
-\r
-namespace System.Reflection {\r
-\r
-\r
- /// <summary>\r
- /// <para>Marks each type of member that is defined as a \r
- /// subclass of <see langword="MemberInfo" /> .</para>\r
- /// </summary>\r
- /// <remarks>\r
- /// <para>These enum values are returned by <see cref="P:System.Type.MemberType" /> and are useful in \r
- /// <see langword="switch" /> statements. <see langword="MemberTypes" /> \r
- /// matches the CorTypeAttr defined in CorHdr.h.</para>\r
- /// <para>To obtain the <see langword="MemberTypes" /> value for a\r
- /// method:</para>\r
- /// <list type="bullet">\r
- /// <item>\r
- /// <term>\r
- /// First get a <see cref="T:System.Type" />.</term>\r
- /// </item>\r
- /// <item>\r
- /// <term>\r
- /// From the <see langword="Type" />, get the\r
- /// <see langword="MemberInfo" /> array.</term>\r
- /// </item>\r
- /// <item>\r
- /// <term>\r
- /// <para>From the <see langword="MemberInfo" /> array, get the \r
- /// <see langword="MemberType" /> \r
- /// .</para>\r
- /// </term>\r
- /// </item>\r
- /// </list>\r
- /// </remarks>\r
- /// <example>\r
- /// <code lang="C#">using System;\r
- /// using System.Reflection;\r
- /// \r
- /// class membertypesenum\r
- /// \r
- /// {\r
- /// \r
- /// public static int Main(string[] args)\r
- /// \r
- /// {\r
- /// \r
- /// Console.WriteLine ("\nReflection.MemberTypes");\r
- /// \r
- /// MemberTypes Mymembertypes;\r
- /// \r
- /// //Get the type\r
- /// \r
- /// Type Mytype = Type.GetType\r
- /// \r
- /// ("System.Reflection.ReflectionTypeLoadException");\r
- /// \r
- /// //Get the MemberInfo array\r
- /// \r
- /// MemberInfo[] Mymembersinfoarray = Mytype.GetMembers();\r
- /// \r
- /// //Get and display the name and the MemberType for each member\r
- /// \r
- /// foreach (MemberInfo Mymemberinfo in Mymembersinfoarray)\r
- /// \r
- /// {\r
- /// \r
- /// Console.Write ("\n" + Mymemberinfo.Name);\r
- /// \r
- /// Mymembertypes = Mymemberinfo.MemberType;\r
- /// \r
- /// Console.Write (" is a "\r
- /// \r
- /// + ToString(Type.GetType(\r
- /// \r
- /// "System.Reflection.MemberTypes"),Mymembertypes));\r
- /// \r
- /// }\r
- /// \r
- /// return 0;\r
- /// \r
- /// }\r
- /// \r
- /// }\r
- /// </code>\r
- /// <para>This code produces the following output:</para>\r
- /// <para>Reflection.MemberTypes</para>\r
- /// <para>GetType is a Method</para>\r
- /// <para>ToString is a Method</para>\r
- /// <para>.ctor is a Constructor</para>\r
- /// <para>Types is a Property</para>\r
- /// <para>LoaderExceptions is a Property</para>\r
- /// </example>\r
- public enum MemberTypes {\r
-\r
- /// <summary>\r
- /// <para> Specifies that the member is a constructor,\r
- /// representing a <see cref="T:System.Reflection.ConstructorInfo" /> member. Hex value of 0x01.</para>\r
- /// </summary>\r
- Constructor = 1,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is an event, representing an <see cref="T:System.Reflection.EventInfo" />\r
- /// member. Hex value of 0x02.</para>\r
- /// </summary>\r
- Event = 2,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a field, representing a <see cref="T:System.Reflection.FieldInfo" />\r
- /// member. Hex value of 0x04.</para>\r
- /// </summary>\r
- Field = 4,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a method, representing a <see cref="T:System.Reflection.MethodInfo" />\r
- /// member. Hex value of 0x08.</para>\r
- /// </summary>\r
- Method = 8,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a property, representing a <see cref="T:System.Reflection.PropertyInfo" />\r
- /// member. Hex value of 0x10.</para>\r
- /// </summary>\r
- Property = 16,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a type, representing a <see cref="F:System.Reflection.MemberTypes.TypeInfo" />\r
- /// member. Hex value of 0x20.</para>\r
- /// </summary>\r
- TypeInfo = 32,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a custom member type. Hex value of 0x40.</para>\r
- /// </summary>\r
- Custom = 64,\r
-\r
- /// <summary>\r
- /// <para>Specifies that the member is a nested type, extending <see cref="T:System.Reflection.MemberInfo" />.</para>\r
- /// </summary>\r
- NestedType = 128,\r
-\r
- /// <summary>\r
- /// Specifies all member types.\r
- /// </summary>\r
- All = 191,\r
- } // MemberTypes\r
-\r
-} // System.Reflection\r
+// MemberTypes.cs
+//
+// This code was automatically generated from
+// ECMA CLI XML Library Specification.
+// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
+// Created: Wed, 5 Sep 2001 06:38:53 UTC
+// Source file: all.xml
+// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
+//
+// (C) 2001 Ximian, Inc. http://www.ximian.com
+
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System.Runtime.InteropServices;
+
+namespace System.Reflection {
+
+
+ /// <summary>
+ /// </summary>
+#if NET_2_0
+ [ComVisible (true)]
+#endif
+ [Flags]
+ public enum MemberTypes {
+
+ /// <summary>
+ /// </summary>
+ Constructor = 1,
+
+ /// <summary>
+ /// </summary>
+ Event = 2,
+
+ /// <summary>
+ /// </summary>
+ Field = 4,
+
+ /// <summary>
+ /// </summary>
+ Method = 8,
+
+ /// <summary>
+ /// </summary>
+ Property = 16,
+
+ /// <summary>
+ /// </summary>
+ TypeInfo = 32,
+
+ /// <summary>
+ /// </summary>
+ Custom = 64,
+
+ /// <summary>
+ /// </summary>
+ NestedType = 128,
+
+ /// <summary>
+ /// </summary>
+ All = 191,
+ } // MemberTypes
+
+} // System.Reflection