显示标签为“Delegates”的博文。显示所有博文
显示标签为“Delegates”的博文。显示所有博文

2009年3月26日星期四

March 27th Links:ASP.NET,JAVASCRIPT,C# Using,Delegate,SQL SERVER

ASP.NET
    where compilation seems to mysteriously( 不可思议的) pause for 30+ seconds(or even minutes),before continuing each time you do a build or F5 of the project.VS2005 Web Sites will copy the assembly picked into the \bin directory of the project as well as(by default) add a .refresh file into the \bin directory that contains a relative path string that points back to the original assembly path location.When you build the solution,VS will automactically check those assembiles with .refresh files to see if a newer version of the assembly is available,and if so automatically re-copy the assembly and re-compile the solution using it.
    1) So Which Project Option Builds Faster?
    When doing full builds of projects,the VS2005 web application project options will complie projects much faster that the vs2005 web site

C#

JAVASCRIPT

SQL SERVER

.NET Framework

Other

English
    1. fledged: 成熟的
    2. unobtrusive: 不打扰的
    3. scratch the surface: 冰山一角

2009年3月7日星期六

March 7th-8th Links: ASP.NET MVC,Expression Tree,SQL Injection,Delegate,Lambda Expressions

ASP.NET

ASP.NET MVC

C#
    WHAT DOES IT MEAN TO SAY THAT A TYPE IS A REFERENCE TYPE?
    Basically,it means that every variable of that type that you manipulate is actually a pointer to the actual object on the heap.When you make a copy of this reference,you get another reference that points the same object.
    Now,let's consider what it means to compare these reference. What does equality mean between two reference variables? The answer is ,it depends on what your needs are and how you define equality.
    2. Fast Reflection Library- Codeplex
    You use a generic whenever you have a piece of code which can be re-used by different types.The classic example is a data structure,like a list or hashtable.  

Security

English:
    Vulnerabilities: 易受伤,弱点,漏洞
    aka: Also known as
    malicious: 恶意的,恶毒的
    Exponentially: 成倍的
    Utilize: 利用
    Fed up with:受够了..

2009年3月1日星期日

March 1th Links:ASP.NET MVC,

ASP.NET MVC

C#  
    1) The Action delegate
     encapsulate a method which dosen't reutn a value,and which holds a variable number of parameters.
     a. public delegate void Action()- if the method is parameterless,use it.
     b. public delegate void Action(T arg1).
     c. public delegate void Action(T1 arg1,T2 arg2).
     d. public delegate void Action(T1 arg1,T2 arg2,T3 arg3).
     e. public delegate void Action(T1 arg1,T2 arg2,T3 arg3,T4 arg4).
    e.g: Foreach
    2) The Comparison delegate
    sorting elements within a collection
    e.g: Sort
    3) The Converter
    convert an object from on type to another type
    e.g: List toysNames = toys.ConvertAll(toy => toy.Name);
    4) The Predicate delegate
    defines a set of criteria and determines whether the specified object meets those criteria.
    e.g: Exists,Find,FindAll,FindIndex,etc..
    4. Infinite Lists With C# Yield- Justin Etheredge

CodePlex

JAVASCRIPT
    1. Time to grok Closures- Sergio Pereira
    This happens when the returned(or inner) function has a reference to anything defined in the parent(or outer) function,i.e.(换言之),the parent local scope.When this happens,we way that a closure has been created.

SQL SERVER
    1) Unidirectional(单向的) synchronization
    2) Bidirectional(双向的) synchronization

English
    1. Comfortable: 舒适的
    2. encapsulate: 装入内部,封装(encapsulate method)
    3. intention: 意图
    4. Infinite: 无限的,无穷的,极大的
    5. Closure: 闭合