Net memory)

Source: Internet
Author: User
Tags mscorlib net thread svn update
Get all cultures in. NET Abstract: This example shows how to get all culture names in. net Framework. use static method cultureinfo. get cultures. to get associated specific culture use static method cultureinfo. re atespecificc... read the full text posted @ 2010-03-25 Wang Deshui (95) | comment (0) edit svn instance summary: check out SVN checkout URL path check out the specified version SVN checkout-r rev URL check out the specified date SVN checkout-R "{date}" URL to check where the work copy comes from SVN info Path update job copy SVN update add file to job copy SVN add path set file or directory attributes SVN... read the full text posted @ 2010-03-21 Wang Deshui (458) | comment (1) EDIT subversion command summary: common options of SVN commands -- targets list reads the list and interprets it as a list of parameters to be operated -- Non-recurisive,-N only operates on a single directory and does not process subdirectories -- verbose, -V prints additional information -- quiet,-Q prints as few information as possible -- username, name specifies the user name used for connection authorization -- password, pawd specifies... read the full text posted @ 2010-03-21 Wang Deshui (646) | comment (0) EDIT Regular Expression: Add domain name summary to the site link: 1. Test text <A href = 'HTTP: // search/. aspx '> Home </a> <a href ='/AAB/BB '> Hello </a> <a href = 'HTTP: // www.sohu.com '> Sohu </a> <p> sdfsf </P> <a href = "/AAB/BB & quo... read the full text posted @ Wang Deshui (126) | comment (0) EDIT design mode: Factory method Abstract: In simple factory mode, the work of instantiating an object is postponed to the factory class responsible for creating the object, and the product class can be dynamically created based on our predictions. However, once the customer changes beyond the foresight, We must modify our source code (foodshop factory. Switch (foodname) {Case "sugar": return new sugar (); Case "Bread": return new bread ()... read the full text posted @ 2009-11-26 Wang Deshui (96) | comment (0) EDIT design mode: simple factory Abstract: simple factory is used to instantiate objects, the customer does not need to know which specific subclass the object belongs. Classes instantiated in a simple factory have the same interface. You can use a simple factory when the classes are limited and do not need to be extended. For example, for database connection objects, common database classes can be predicted... read the full text posted @ 2009-11-26 Wang Deshui (93) | comment (0) EDIT design mode: single-piece mode Abstract: Singleton mode requires that one class has only one instance, A global access point is provided. 1. single-threaded method public sealed class singlton {static singlton instance = NULL; singlton () {} public static singlton instance {get {If (instance = NULL) {return... read the full text posted @ 2009-11-26 Wang Deshui (121) | comment (0) edit. net interview question Abstract: 1 ,. what are the base classes of all built-in types in. Net? What methods are included in system. Object 2 and system. object, and what are virtual methods? System. valuetype has implemented the comparison of the type content, so the comparison of all value types will return false. 3. What is the difference between the value type and the reference type? A. Differences in assignment B. Differences in memory allocation 4. What are the basic concepts of packing and unpacking? Packing and unpacking are essentially converting the value type to system. object... read the full text posted @ 2009-11-06 Wang Deshui (72) | comment (0) edit. net multithreading note (6): thread synchronization Summary: synchronization block mechanism: In. when net is loaded, each object allocated to the heap in the initialization synchronization block array will contain two additional fields, one of which is a storage type pointer, and the other is to synchronize the block index, the value is initially-1. when a thread tries to use this object for synchronization, it will check the synchronization index of this object. If the index is negative, a synchronization block is searched for or created in the synchronization block array, and the index value of the synchronization block is written into the synchronization index of the object. If the synchronization index of the object is not negative, find the synchronization block of the object and check whether there are other... read the full text posted @ 2009-11-06 Wang Deshui (115) | comment (0) edit. net multithreading note (7): Process Synchronization mutex Abstract: mutex is a cross-Process Synchronization with very low efficiency using system; using system. collections. generic; using system. io; using system. LINQ; using system. text; using system. threading; using system. diagnostics; namespace multithreadtest {class pro... read the full text posted @ 2009-11-06 Wang Deshui (187) | comment (0) edit. net multithreading note (5): dedicated thread data TLS Summary: local thread Storage (Thread Local Storage TLS) in. in the. NET program, static variables are globally visible (the entire application domain) data. A common static variable is visible and accessible to all threads in the application domain. TLS refers to a structure in the online environment block for storing exclusive data in the thread. The threads in the process cannot access the TLS that does not belong to them. This ensures that the data in the TLS is shared across the whole thread, but invisible outside the thread.... Read the full text posted @ 2009-11-06 Wang Deshui (112) | comment (0) edit. net multithreading note (4): thread pool summary :.. Net thread pool. All running threads in the thread pool are background threads. The isbackground attribute of the thread is set to true. the so-called background thread means that the running of these threads will not hinder the end of the application. Otherwise, the application can exit only after all foreground threads are finished. Example: using system; using system. collections. generic; using system. LINQ; using system. text; using... read the full text posted @ 2009-11-06 Wang Deshui (102) | comment (0) edit. net multithreading note (3): thread state Summary: thread state using system; using system. collections. generic; using system. LINQ; using system. text; using system. threading; namespace multithreadtest {class program {static void main (string [] ARGs) {console. WRI... read the full text posted @ 2009-11-06 Wang Deshui (92) | comment (0) edited. net multithreading note (2): multithreading example summary: multithreading example: using system; using system. collections. generic; using system. LINQ; using system. text; using system. threading; namespace multithreadtest {class program {static void main (string [] ARGs) {console. WRI... read the full text posted @ 2009-11-06 Wang Deshui (85) | comment (0) edit. net multithreading note (1): process, thread, and fiber process Abstract: Process represents an application running on the operating system. A process has its own block, exclusive resources and data, and can be scheduled by the operating system. Even if the same application is forced to be started multiple times, it will be installed in an inaccessible process and run independently. A thread is also called a microprocess or a lightweight process. It is similar to a process. It is a scheduling Unit and maintains its own stack and Context Environment. A thread is affiliated with a process. A process can contain one or more threads and multiple threads in the same process... read the full text posted @ Wang Deshui (142) | comment (0) EDIT [tips]: an example of the value type and reference type Abstract: using system; using system. collections. generic; using system. LINQ; using system. text; namespace consoleapplication1 {class program {static void main (string [] ARGs) {string [] A = {"A", "B", "C ", "D "};... post ed @ Wang Deshui (113) | comment (0) EDIT [tips]: multithreading manualresetev Ent Abstract: waithandle is used to achieve exclusive access to shared resources. Both autoresetevent and manualresetevent inherit from it. The waithandle. waitone method will block the current thread until waithandle receives the signal. However, sometimes we need to test the waithandle status in a non-blocking way. Public Virtual bool waitone (INT millisecondstimeout) can specify the waiting... read the full text posted @ Wang Deshui (125) | comment (0) EDIT [tips]: read value from resource file in C # Abstract: 1: // namespace reference 2: using system; 3: using system. resources; 4: 5: 6: # region readresourcefile 7: // <summary> 8: // Method for reading a value from a resource file 9: ///... read the full text posted @ Wang Deshui (197) | comment (0) Edit G Et countries from System Abstract: 1: using system; 2: using system. collections. generic; 3: using system. LINQ; 4: using system. text; 5: using system. globalization; 6: using system. io; 7: 8: namespace cultureinformation 9: {10: class... read full text posted @ Wang Deshui (33) | comment (0) edit code segment: ASCII to Unicode Abstract: 1: Private string convertasciitounicode (string theasciistring) 2: {3: // create two different Encodings. 4: encoding aasciiencoding = encoding. ASCII; 5: encoding aunicodeencoding = encoding. unicode ;... read the full text posted @ Wang Deshui (107) | comment (1) EDIT msil (1): Hello World Abstract: 1. write the following code in Notepad. assembly helloworld {}. assembly extern mscorlib {}. class helloworld extends [mscorlib] system. object {. method public static void helloworld (){. maxstack 1 ldstr "Hello World" Call void [... read the full text posted @ 2 102-03-09 Wang Deshui () | comment (0) EDIT msil (0): Summary: Microsoft intermediate language (msil) Microsoft intermediate language msil is set. net code is an intermediate process of converting to machine language. It is a pseudo-assembly language between an advanced language and an Intel-based assembly language. When you compile a. Net Program, the compiler translates the source code into a group of commands that can effectively convert to Local Code and are independent of the CPU. When these commands are executed, the real-time (JIT) compiler converts them into CPU-specific code. Because the Common Language Runtime Library supports multiple types... read the full text posted @ Wang Deshui (142) | comment (0) edit c # collection series (9 ): inheritance, interface, extension method, Division Class, Class operation, ref and out, empty type posted @ 2008-06-19 Wang Deshui (285) | comment (1) edit C # collection series (8): Abnormal posted @ 2008-06-19 Wang Deshui (101) | comment (0) edit c # collection series (7 ): custom attribute posted @ 2008-06-18 Wang Deshui reading (174) | comment (0) edit c # collection series (6): iterator posted @ 2008-06-14 Wang Deshui reading (154) | comment (0) edit c # collection series (5): Generic commissioned posted @ 2008-06-14 Wang Deshui (149) | Comment (0) edit c # collection series (4): indexer posted @ 2008-06-11 Wang Deshui (200) | comment (0) edit c # collection series (3): constructor posted @ 2008-06-11 Wang Deshui (145) | comment (0) edit c # collection series (2): attribute posted @ 2008-06-11 Wang Deshui (107) | comment (0) edit c # collection series (1): Delegate the ASP. net shared session Summary: 1. create a WCF project 2. create. SVC file 3. modify web. config is mainly used to add <servicehostingenvironment aspnetcompatibilityenabled = "true"> </servicehostingenvironment>, and allwocookies must be set to tru E. read the full text posted @ 2010-05-18 Wang Deshui reading (210) | comment (0) solve the error when editing iis host wcf Abstract: the following error is always reported when you use IIS to host the WCF Service, it took nearly two hours to know the web. if the endpoint configured in config is the same as the endpoint configured in Windows Service, stop Windows servcie and restore it to normal. XML parsing error: No element found location: http: // 10.10.50.127/calendarservice /... read the full text posted @ 2010-04-08 Wang Deshui (142) | comment (0) edit wsdl 1.1 canonicalized Abstract: Web Services Description Language (WSDL) 1.1 W3C note 15 March 2001 this version: http://www.w3.org/TR/2001/NOTE-wsdl-20010315 Latest Version: http://www.w3.org/TR/wsdl authors (alphabetically): Erik... read the full text posted @ 2009-12-14 Wang Deshui (148) | comment On (0) editing the timeout for calling Web Service Abstract: solution: ==========-we need to increase the timeout setting of the Web Service proxy class before making the call to the web service. example: localhost. service1 Ws = new localhost. service1 (); ws. timeo... read the full text posted @ Wang Deshui (286) | comment (0) edit the operation has timeout Abstract: Public partial class sampledatacontext: system. data. LINQ. datacontext {partial void oncret Ated () {This. commandtimeout = 8000;} Then, operation has time out will continue to be reported during the call. go home in the evening, check after dinner, set the following parameters, test, still report operation ha... read the full text posted @ Wang Deshui reading (8) | comment (0) EDIT [tips]: SQL Server 2005 create Assembly failed Abstract: When you create an SQL server2005 assembly today, an error occurred while prompting the permission. This is Sa permission. Finally, you can use 1: Alter database [testdb] Set trustworthy on by adding the following sentence: 1: use [testdb] 2: Go 3: if exists (select * From sys. assemblies ASMs where ASMs. name = n' g... read the full text posted @ Wang Deshui reading (189) | comments (0) edit the WCF tips: Contract-first note summary: In the contract-first mode, we use svcutil.exe *. WSDL *. XSD/MC/L: When Cs generates a proxy class. Pay attention to the following points during Schema Design: 1. attribute cannot be used. 2. extision cannot be used, as follows: 1: <Xs: complexcontent> 2: <Xs: Extension base = "TNS: requestbase "&... read the full text posted @ Wang Deshui (91) | comment (0) EDIT use Fiddler to test WCF Abstract: I wrote a tool for the tester to test WCF, however, it was hard-coded at the time. Although it was easy to use, it was not highly reusable. I did not expect to do several such projects consecutively. So I found that the original use of Fiddler is also acceptable. If we use basichttpbinding, we can use Fiddler to test 1. open Fiddler, select the Content-Type3 input for request builder2. enter the correct soapaction4. select post, enter server... read the full text posted @ Wang Deshui (204) | comment (0) edit wcf tracking debugging Abstract: WCF provides two tools to track the calling process of WCF, I mainly used to track whether the transmitted XML conforms to my defined schema. These two tools are: Tool Path: C: \ Program Files \ microsoft sdks \ windows \ v6.0a \ binsvcconfigeditor: svctraceviewer, a tool provided by Microsoft to assist in editing the WCF configuration file: microsoft provides a tool for viewing the trace log of WCF. Configure the trail to start SVC... read the full text posted @ Wang Deshui (378) | comment (0) edit wcf step by step (5): Data contract posted @ 2008-07-03 Wang Deshui (233) | comments (0) edit wcf step by step (4): Use the proxy class on the client to use the service posted @ 2008-07-03 Wang Deshui (513) | comment (1) edit the WCF step by step (3 ): use the configuration file to change the way services are used: posted @ 2008-07-03 Wang Deshui (202) | comment (0) edit wcf step by step (2 ): use the configuration file to change the service publishing method posted @ 2008-07-02 Wang Deshui (174) | comment (0) edit the WCF step by step (1): simple example

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.