Reading Notes. Net in-depth experience and practical needs (1)

Source: Internet
Author: User

Before:

At that time, I bought this book mainly because of. net.CodeGenerator. Just read it later. Now read it carefully.

. Net, do you know?

Sometimes I feel more impetuous, But I can withstand the loneliness. secondly, I don't know whether things besides development will bring me interest. At least I am still interested in computers, at least to the new things.

To understand what you are doing? I am engaged in. NET software development. I usually write on my resume. I have no idea how to apply for a. NET software engineer. I can't measure myself.

Any time, any place and on any device. A dream

Main Components of. NET Framework:

1. the basis and core of the entire development framework, the Common Language Runtime Library (CLR) and a set of basic class libraries (FCL ).

2. New database access technologies such as ADO. net, ASP. NET, and WInformProgramming.

3. multi-language platforms in terms of development languages.

 Steps for implementing the. NET framework2.0 architecture:

Source code-> msil (Microsoft intermediate language)-JT-> Local Code

This is run in the managed CLR environment.

. NET features: CombinedProgramming LanguageThe development process leads to the superiority of. net.

    1. Interview meeting:
    • Namespace: Logical group of classes. Format: company name. Project name. xx. xx. It is specified at the beginning of Project Creation.

 

    • Type inference: VaR is rarely used.
    • Constant: const is always static and cannot contain static
    • Process control: If (59 = seconds) // sometimes it is not used to writing like this. Switch prohibits penetration.
    • String common operations:

Returns the length of a string.

Str. length;
Convert string to bit code System. Text. encoding. Default. getbytes (STR );
String Addition Stringbuild. append ();
Truncate string Str. substring ();
Check whether the specified location is empty Char. iswhitespace (STRING variable, number of digits );
Punctuation Mark or not Char. ispunctuation ('characters ');
Conversion of characters and numbers (INT) ('中') (char) (22236)
Clear spaces before and after Str. Trim ();
Replace string Str. Replace ("", ");
Deletes the last character of a string. Str. substring (0, str. Length-1 );
Splite String [] arrstr = Str. Split (',');
Output string format 1234. tostring ("N"); C, E, F4, X, P
Special conversion Int. parse (a). tostring ("#########");
Output 21 String STR = new string ('A', 21 );
Obtain Random Number Random r = new random ();
Forced conversion Int32.tryparse (); int32.parse (); Convert. toint32 ();

2. Object-oriented:

Inheritance ----- parent

Delegate ----- task book

Event-Year-end dividend

Reflection ---- resolution

 

3. tips:

The special usage of using is changeable and @

 

Common technical questions:

1. What is delegation? What is the relationship between delegation and events?

Pass the method as a parameter

Delegate void saydelegate (string name); the parameter matches the return type.

 

2. What is reflection?

 

 

Can C # be inherited from multiple classes? How to Implement Multi-student inheritance?

It cannot be inherited from multiple classes. It inherits multiple interfaces to implement multiple inheritance.

4. What is a seal?

Class that cannot be inherited. Sealed

5. What is the purpose of the using keyword?

Reference namespace, using (streamreader sr = new stringreader ())

6. # What are the purposes of warning and # error respectively?

 

7. Differences between ASP. NET web applications Programs and ASP. NET websites:

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.