The author's understanding of C ++ goes deep into the bone marrow and is a top-level teacher. In addition, he strives for perfection in this book, which creates a myth of C ++ books. This book is suitable for people who know both C ++ and
Negative C # chapter 6th: MiscellaneousChapter 6. Miscellaneous
Some contents are not suitable for a specific directory, but this does not mean that they are not important. For everyone, understandingCodeThe security access policy is very important,
First of all, you must understand that WebService is similar. For the user, he cannot see what your WebService is written for, because it is both soap and WSDL-like, so why do we need such a name... is to facilitate the majority of familiar with C #
Coding habits
1.Naming rules: interface naming rules and interface naming rulesIStart with prefix and start with prefix,ExceptionException exceptionSuffix As its suffix.
2.Use meaningful variable names and namespaces. Methods With return
// Sort arrays with only characters, private string [] AA = {"A", "C", "B"}; array. sort (AA); MessageBox. show (AA [0]); MessageBox. show (AA [1]); MessageBox. show (AA [2]); Result: A, B, C
If you want to implement
Array. Sort (ARR );No !!!!!!!
Figure 1 differences between the compile-time and runtime Constants
Compilation times are a little faster than running times, but it lacks flexibility.Program"Slow" can ensure correct operation, and "fast" may lead to errors, so I believe that
FromCodeIs there suddenly ?? Operator, maybe I am a little white. I checked msdn to find out that this operator is available. See the following example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
# Include
Stdio. h
>
# Include
Windows. h
>
# Include
Wininet. h
>
# DefineMaxsize 1024# PragmaComment (Lib, "wininet.
The third-party library is not required to use JSON in C #. You can use the system. runtime. serialization. JSON file that comes with. Net framwork3.5 to parse JSON.
For more information about JSON, see the following figure on the homepage ):
System. Web. httpcontext. Current. Request. servervariables ["remote_addr"]. tostring ()
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /**/ /// /// Checks whether the user IP
Class program {static void main (string [] ARGs) {console. writeline (next ("abc123def345ghi"); console. read ();} Private Static string next (string s) {If (! Isnumber (S. substring (S. length-1, 1) S = S + "0"; matchcollection coll = RegEx.
1. Description
Attribute provides a powerful way to link declarative information with C #Code(Type, method, attribute, etc.) are associated. Attribute andProgramAfter object Association, you can use the technology "reflection" to query attributes
The book says that temporary objects are generated when parameters are passed by value and return values are passed by value. It is better to understand the temporary variables generated when the function transfers parameters by value, it is
Using System; Using System. runtime. interopservices; Using System. drawing; Using System. Drawing. imaging; Namespace Video { /// /// A class for controlling cameras /// Public Class Videowork { Private Const Int Wm_user =
Valid C # principle 47: Select safeCodeItem 47: prefer safe code
. Net runtime has been designed, and some malicious code cannot penetrate into and execute on a remote computer. Currently, some partial systems are too lazy to download and execute
Valid tive C # principle 39: use. Net for verificationItem 39: use. Net Validation
User input may be diverse: You must verify the input as much as possible in interactive controls. Writing user input verification may be tricky, and there may also
The following describes the regular expressions in C #. The regular expressions in C # are contained in a namespace of the. NET base record. The namespace is System. Text. RegularExpressions. The namespace contains eight classes, one enumeration,
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