Write a blog for the first time to share the code of a simple calculator. As a quasi-programmer, it is necessary to write more code to be able to be clever. Focus on basic knowledge to fly faster, higher and more stable.The code may be poorly
The contents of this article can be queried in the "C # Primer Classic". If there are any errors, please note. Thank you!C #: Full name C Shar. is one of the most important customer languages under the Microsoft. Net Framework platform. Personal
When I do HTTP communication between ASP and unity, when the unity client sends out the form request, I want to return the data he wants to request in JSON format to the client, so that the client can parse it. The server side of this piece involves
Synthesis/Aggregation multiplexing principle (CARP):
Instead of using class inheritance, the composition/aggregation is preferred.
Aggregation represents a weak "owning relationship", which reflects that a object can contain a B object, but the B
State mode: When an object's internal state changes to allow its behavior to change, the object looks like it has changed its class.
State mode mainly solves the situation when the conditional expression that controls an object state transition is
Interpreter mode (interpreter): Given a language, defines a representation of its grammar and defines an interpreter that uses that representation to interpret sentences in the language.
Interpreter mode resolves a problem: if a particular type of
Main Page Call Code snippet:
Login
Login.aspx Code:
Study number: Password: Captcha: characters in input, case insensitive not clear, change a piece
JQuery Code:
Login.ashx Code:
Using System; Using
Objective
When all preparations are in place, implement a focus on the public number and push a message to the client. Follow-up push messages require a GET request, a POST request, and a GET request is primarily to authenticate to the server,
Can you call virtual functions in a constructor to achieve polymorphism?
1) When is the Vptr pointer in the object initialized?The vptr pointer is initialized by the compiler when the object is created.Only when the object's construction is
Front desk
Change a
Controller
Using system;using system.collections.generic;using system.linq;using system.web;using System.Web.Mvc;using Utility; Using Jellal**;namespace sjlwebsite. controllers{public class Commoncontroller:controller {
Before I have never done the ability to send the mailbox, the previous period of time the project needs, after looking for a lot of posts, finally realized.
Then there was a tidy up and wrote a class. Pass the information directly to the class and
This article describes the method of generating a graphics verification code from ASP. Share to everyone for your reference, as follows:
Typically there are 3 steps to generating a graphical verification code:
(1) randomly produces a random string
Since this chapter is very long it may take a few points:)
20. Generic type
20.1 generic class declaration
A generic class declaration is a declaration of a class that needs to provide a type parameter to form the actual type.A class declaration
Front desk
Change a
Controller
Using system;using system.collections.generic;using system.linq;using system.web;using System.Web.Mvc;using Utility; Using Jellal**;namespace sjlwebsite. controllers{public class Commoncontroller:controller {
Conversion operator (non-primitive type conversion), Operator
When the source and target types are not primitive types, CLR cannot compile and convert them by itself.
In the following example, convert Rational (Rational number type) to string or int.
Log4net, c # log4net
In the project process, you must use the log function. I have made a set of logs for my projects, but I still use other mature dll, such as log4.
Log4-related documents are really many and comprehensive, but I still want to
Log4net, c # log4net
The previous article was copied from others, mainly about rules and instructions. This article focuses on actual use.
First, we will introduce the most common configuration file methods in the project.
1. log4net. config file
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.