A method to obtain the reflected content
Void getreflectioninfo (Assembly myassembly)
{
Type [] typearr = myassemby. gettypes (); // obtain the type
Foreach (type in typearr) // obtain detailed information for each type
{
Constructorinfo []
1. What is C #?
C # is an application that Microsoft creates for the. NET platform and runs on the. net clr.ProgramIs a secure, stable, simple, and elegant language derived from C and C ++.Programming Language.
2. What is. NET Framework?
. NET
When. Net calls the EXE made by C ++, the debugging fails, so it has to add logs in each row to record where the execution is.
First Add the following reference
# Include # Include
CodeIn use:
STD: ofstream in;In. Open ("D: \ linelog.txt", STD:
1And Commission:Actually, it is the method polymorphism, which can be more specifically the method pointer.
2,The delegate is a reference type, which is similar to the class and interface.
3,A delegate can point to multiple methods. A delegate
C # obtain the pathString str1 = process. getcurrentprocess (). mainmodule. filename; // obtain the file name of the currently executed exe.String str2 = environment. currentdirectory; // obtain and set the fully qualified path of the current
C # count the number of "0" characters and insert the number into the characters. Requirements:Input:Rnbakabnr/000000000/0 c00000c0/p0p0p0p0p/000000000/000000000/p0p0p0p0p/0c00000c0/000000000/rnbakabnrOutput:Rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/p1p1p1p1p/
C # xml operations
There is a class in system. XML that can operate XML
(There are very few records of these classes on the Internet. It may be because there are many classes. msdn Introduction)
Create a New XML
Xmldocument xmldoc = New
in C # winform programming, have you ever encountered such a problem? click the button in form1 in the main window to bring up a subwindow form2. You want to call the form1 function in form2, changed the display of form1, but found that form1 was
Today, I suddenly thought that I forgot my understanding of delegation and I would like to review it again. I hope it will help you.
First, let's take a look at msdn's explanation of delegation.:
A delegate is a type that defines the method
C # list usage C # list examples
By Sam Allen-updated September 7, 2009
Problem.You have questions about the list collection in. net Framework, which is located in the system. collections. generic namespace. you want to see examples of using list
There are indeed many existing encryption and decryption classes using the. NET Framework. To be more flexible and secure, you can convert string to Char and then encrypt and decrypt it using your own method.
Using system;Using system.
Function of reflection:
1. You can use reflection to dynamically create instances of the type, bind the type to an existing object, or obtain the type from an existing object.
2. The application needs to load a specific type from a specific program
String str1 = Process. GetCurrentProcess (). MainModule. FileName; // obtain the file name of the currently executed exe.
String str2 = Environment. CurrentDirectory; // gets and sets the fully qualified path of the current directory (that is, the
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Using System;
Using System. Web;
/// /// Summary of cookies/// Public class Cookie{/// /// Create Cookies/// /// Cookie primary key /// Cookie key
Session and ViewState are generally used for saving the Object type data on the Web. However, after the user exits or closes IE, the data cannot be saved. No way, he can only try using cookies.
Principle: serialization/deserialization is used to
I. Example of C # array usage:Type [] typename = new type [size];For example, int [] a = new int [2]; string [] str = new string [5];In fact, we usually use int [], string [].... At this time, we have created an Array, but we do not have this
Learn from now on.
Correct understanding of C #
Its pronunciation is C Sharp, which is very important. Baidu encyclopedia above C # This entry, you can have a detailed understanding of this, the correct understanding of C # has a great help:
1. How to Create a form with no title bar size changed? (How to create a form with resizing borders and no title bar ?) Form1.Text = string. Empty;Form1.ControlBox = false; 2. How to enable the XP topic set on. NET Windows Forms? (How to use XP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service