Comparison of the bronze sculpture and the Stone Sculptu

? As a social force to firmly control the irresistible domination the fate of mankind, so that human life revolves around its ongoing development, and the festival is the concrete manifestation of this phenomenon, as a symbol of worship places to set up objects, bronze in full bloom for the ancestral spirits enjoyed the offerings, Bronze carving style and the mysterious cohesion is very strong cultural meaning. This imitation of? bronze statue ? is made from bronze and has a good collecting value.? Whether in solemn silence, smoke-shrouded temple on top, or in the eerie, bloody ritual sites, the number of green, glistening variety of shapes tripod, wine container, goblet, humble, respect placed in the most conspicuous place, is essential for real products, with special symbolic function is extremely important decorations.
Western Zhou china bronze statue ? mole public wine container late autumn wind patterns Fangding Chun Book, pot hunting pattern late Spring and Autumn cicada patterns evolve Legend suspected a silicon Shapeshifter pattern Ding Spring and Autumn Period geometric patterns London late Spring and Autumn Shang and Zhou bronze relief in the form of the evolution of language arts several reasons political, religious, ritual system changes in the relationship between art and political ritual, the ritual system early in the Shang and Zhou and art are inseparable. The gods of their ancestors, Shang and Zhou bronze relief in the form of the evolution of language arts processes and its worship is the reason for all human beings born with a special cultural phenomenon, in the early human society. The original bronze sculpture ? is made from clay and is hard to keep.
Offering facilities for the display of piety who played the role off the atmosphere, very beautiful bronze relief carving is also extremely rich in particular refers to the meaning of this refers to the real meaning of being a powerful image to express the strength of the animal, so the bronze embossed image of a special form of language arts approach focused on imitation of the real performance characteristics of these animals, the mighty, strong shapes, peculiar form of composition, in the meantime focus on guiding who think that the remote ancestors of the gods unknown image , the use of artistic images to enhance their sensory stimulation, piercing the human mind to arouse the viewer? s soul the gods of the so-called fear. The front leg of the chinese bronze ? is up and rising with the back leg on the ground.
Therefore, awareness of the concept as a tool for performance art image in full compliance with the ritual culture evoke a sense of mystery and fear, followed by the solemn artistic expression is terrible. ? Ritual? system is a slave ruling class contradictions to maintain their rule to ease the development of the new variant form of political system, but has focused on the cultural characteristics of the Western Zhou Dynasty, Shang slave society as a whole and has the absolute right and sacrifice mysterious culture Compared with the bloody increasingly concerned about relationships between people , concerned about people? s emotional feelings. The bronze dragon ? drum is the most national representatively cultural heritage of Chinese South. Shang bronzes norms solemn, strange and mysterious, impulsive neat lines on the shape and maintain the independence and integrity of the entire device, showing the strange and terrible majesty, and the Western Zhou Dynasty bronze ritual not only in religious ceremony more to be put on a grand.
see the original: http://www.easyarticle.org/hobbies/article_34533.html

Comparison and Contrast: Places Where People Live and Work Compare and contrast attitudes toward

someone to build the lawn and so on were similar as that things for
very warm-hearted, this is almost the whole society to participate

people. Firstly, some students think that joining a part-time job
The school and unit for choose employ persons positive to contact
use powerful examples to clean the issue.
appropriate evidence to explain your answer.
and so on. Other hand, university of America and those big company
That is very useful in their live.

part-time, they believed is helpful in recent year with increasing
family. Some people think that working part time in America is
change of a work. Maybe company in China have different role and
years old, their relatives and friends will to sneer with them.


so on, in this point, is true for China or America students.
in one company. Without their works ability and surroundings around
part-time job. If students borrow money from their parents over 18
Students, generally, is more independent than students will find


people live and work of part-time job, and in America and China.
the students works time is same as China, but the salary have more
a high pay are attracting students, I think that is an important
excellence are based on their works. Meanwhile, without in China or
vocational training. Let students practice their professional
people, and keep good mind response ability, work and study of
these companies and though their works, cover works experience and
have more and more useful knowledge and experience than others
usually heard that delivering newspapers, send milk and help
Feel stateliness of leader, and administrant for strict in roles.
welfare from America, the culture and environment also have a
for college students provide good professional and vocational
cities.


is the main. In today society and to find a good part-time work ,
cooperation, let the students to better the classroom learned on

sum up, some students have more chances to find a part- time in

they live and work is a big problem and caused of attention of
students, so, that is a negative effect to their work. Some


job to get some pin money in their spare time. Therefore, where
although China and the United States, the place is different, but
how to have great time to talk with somebody. Therefore, grow up
Word Count: 1002
deeds.
students to go in for part-time job, and the problem catch human
get a steady job in China, but under a lot of pressure. In America,
alternating, during study practice activities not only to


To
independent ability and practice ability of students in America
can provide their overall quality, that is beneficial for their
in your country and in the USA Use specific examples and provide
know the society for occupational demand, also let them know
Compare and contrast attitudes towards students working part-time

China
Due Date: 30 December 2011
There
training opportunity to practice is worth our using for reference.
in big cities, such as Beijing and New York, moreover, big cities
enterprise engaged in practice for the university students are all
Student id #: ZMSC20169
With the development of the society, there are more and more
and social needs.
the theoretical knowledge in the work practice tested and
accord to their ability of themselves to find a part-time job, that
differences between America and China and especially from they work
way why to get a job. Moreover, system in China is different from
himself more clearly, determine the direction in the future career
or background of culture. Not only that The United States also has
the ability of individuals cannot be changed, so, students must to


beneficial to development their mind, how to start a team work and
Especially in big cities, because there are more and more chances
himself, but no matter where in America or China, are both have
America students to do, they get pocket money from the easy
cooperation ability and earnest rigorous work attitude. Overall,
students works in China company have to use their specialty
In this essay, I will to comparison and contrast that phenomenon,
America, are both can deploitation their eyes, rich knowledge and
help neighbors to feed the pet, mowing the low, look after the kids
the major mean is creation ability. It is worth mentioning that the
why that student chooses difference places to work or live? Are

We
contrast, the part time job in the USA is different from China.


than China, and working time is freedom, but must have a good team
knowledge all time, and under the model you can get a exercise.
Student Name: Zheng (Colen) Zhongchao
they has some benefit? I will explain their attitudes towards, and
Teacher: Maki
America, some students in China wants to get a business own
little distinguish. But students still acquire new knowledge from
Comparison and Contrast:

ability and the ability to relate to others, the more thorough to
has a law and regulation is you can have a job if you over 18 years

eye. Therefore, places where people live and work is a big problem.
choice, really it is with one action is gotten more good
America, maybe the role for work also hold-up some new ideas from
has been much discussion revolving around the issue of whether
the part time job when they are in middle school. For example, to
the students to better to adapt to the present society development
from their works, assimilate experience and change the way of

live. Moreover, students can touch the society by means of working

only can get some money, but also learn to communicate with the
Though they are not earning more money, but that can train the
application. For students, it benefits naturally self-evident. Not

In
difference value and shortcoming for themselves. The students can
old and include part-time job. So, there are many students choose a
Places Where People Live and Work
professional study complement and inspection, is also a kind of

Programming C # string function 1 43

string s1 = “aaa, bbb, ccc, fadsfas.hellof1241″;
~ ToUpper (): get a string of uppercase;
int max = 0;
/ / Ingore: ignored, Case: Case.
* /
foreach (string item in strs)
class Program
/ / return value is string array, each element is a line.
* string split
/ / Example 1: From the date of the string (“2008-08-08″) in the analysis of the year, month, day;

s = s.ToLower ();
~ string [] Split (params char [] separator): the specified delimiter string split into an array of strings;
/ / Example 2: From the a record of student achievement text documents, each student achievement is a line, each line using thepartition data,
~ Example 2: a record of student performance from a text document, each student achievement is a line, each line withsplit data,
string [] strs = s1.Split (chars, StringSplitOptions.RemoveEmptyEntries);
max = Convert.ToInt32 (strs [2]);
if (Convert . ToInt32 (strs [2])> max)
2011 年 08 月 26 日
Console.WriteLine (s.ToUpper ());
string s1 = “I Michael Jackson, I I am a new Han Geng “;
Console.WriteLine (item);
string [] strs = s1.Split (new string [] {” I “}, StringSplitOptions.RemoveEmptyEntries);
/ / string s1 = s.ToLower ();
}
foreach (string item in strs)
~ Trim () to remove the string at both ends of the blank.
Console.WriteLine (item);
string [] strs = s1.Split ( ;
/ *
/ *
{
} * /
/ *
}
/ / Reference: Use string [] lines = System.IO.File.ReadAllLines (@ “c: \ root.ini”, E ncoding.Default ); read data from a text file,
for (int i = 0; i string s1 = “aaa.bb, cc,, 12,3″;
string name = “”;
but the modified value of the string returned by the function returns the value.
{
/ *
char [] chars = new char [] { ;
Console.WriteLine (“the highest score the student name: { 0}, results: {1} “, name, max);

/ / Console.WriteLine (s); / / output Hello
} * /
separated delimited string array.
/ / string [] strs = lines [i]. Split (new char []{ , StringSplitOptions.RemoveEmptyEntries);
}
bool b = “abc”. Equals (“ABC”, StringComparison.OrdinalIgnoreCase);
Console.WriteLine (item);
{
foreach (string item in strs)
withsplit domain names, respectively, age, performance, writing procedures for the highest score out of the student name and achievements.
/ / Console.WriteLine (s1); / / output hello
{
/ *
s.ToLower () and s = s.ToLower ()
Console . WriteLine (s); / / output hello, do not change the contents of the string, but generates a new string all to lowercase, then s point to the new string
name = strs [0];
Reference: Use string [] lines = System.IO.File.ReadAllLines (@ “c: \ root.ini”, E ncoding.Default); read data from a text file,
} * /
}
{
~ Note that the string is immutable, so these functions are not directly change the contents of the string,
} * /
{
string [] strs = s1.Split ( ;
Console.WriteLine (item);
{
{
{
Split a string array (options to take the time to remove the results RemoveEmptyEntries blank string);
/ *
}
static void Main (string [] args)
namespace string functions 1
foreach (string item in strs)
Console.WriteLine (“| {0} |”, s1); / / outputab
string s1 = “2008-08 -08 “;
string s =” Hello “;
} * /
* /
~ string [] Split (char [] separator, StringSplitSptions options) according to the string specified char separator
string [] lines = System.IO.File.ReadAllLines (@ “d: \ 2.txt”, Encoding.Default);
/ / == is case sensitive Compare, Equals (“ABC”, StringComparison.OrdinalIgoreCase) are case insensitive comparison.
/ *
/ *
* /
foreach (string item in strs)
* /
/ / withsplit domain names, respectively, age, performance, writing procedures for the highest score out of the student name and achievements.
~ string [] Split (string [] separator, StringSplitOptions options) in accordance with a specified string string
Console.WriteLine (“{0} in {1} {2} on day”, strs [ 0], strs [1], strs [2]);
~ ToLower (): get a string lowercase.
}
/ / bool b = (“abc” == “ABC”);

/ / int i =” abc “. CompareTo (” 123 “);// characters string size comparison
string s1 = “ab”;
~ s1.Equals (s2, StringComparison.OrdinallgnoreCase), two strings case-sensitive comparison.
string s1 = “aaa.bb, cc,, 12,3″;
s1 = s1.Trim ();
string s1 = “aaa.bb, cc,, 12,3 “;
string [] strs = s1.Split ( ;
Console.ReadKey ();
/ *
Console. WriteLine (“| {0} |”, s1); / / outputab
/ *
/ / s.ToLower ();
Console.WriteLine (b);
string [] strs = lines [i]. Split ( ;
{
string [] strs = s1.Split (new char []{ , StringSplitOptions.RemoveEmptyEntr ies);
* /
Console.WriteLine (item);
return value is string array, each element is a line.
string [] lines = System.IO.File.ReadAllLines (@ “d: \ 2.txt”, Encoding.D efault);
Console.WriteLine (item);
foreach ( string item in lines)
* string class of commonly used functions
{
~ Example 1: From the date of the string (“2008-08-08″) in the analysis of the year, month, day;

Xtemplate template engine and code generator xcoder (source) – New Life team – garden blog

7, the host automatically referenced assembly. T4 is the biggest trouble is to use an external assembly references and namespaces, which after all is not written in vs C # code. XTemplate at compile time, automatically reference the host (that is, the caller, such as XCoder) of all applications set, clearly referencing the most commonly used space, because of this, the generated class is very bloated, but when compiled, the compiler will automatically Remove unwanted references. XTemplate from completion until now, have not used the reference assembly and namespace problem because, in general, need to use the template in the assembly, the host which are generally used, is consistent with our habits.
template engine XTemplate is an imitation of T4 engine design, the same basic functions and T4 (the template syntax is fully compatible with T4, the first order part of the template is compatible).

1, entirely in C # as the template language. With ASP, ASP.Net pages of analysis, as the <# #> tags outside of the text as a string, use a StringBuilder, tag as a native C # code, compiled together to fight, to replace the template, the essence run the compiled assembly, which is the core principle XTemplate! Many templates available on the network engine, or replace the use of labels, or create their own template language, which have increased the user learning curve. XTemplate template using C # as a language of the world, quiet!
design their own template engine, is to code generator, website templates, email templates and other settings, they could get out is to be used alone, powerful and easy to control. T4 is a good engine, but its design is basically tend to vs, almost regardless of other occasions.
2010 年 11 月 10 日
9, we need more features to discover!
2, support the “debugging.” Not a run-time debugging, but XTemplate able to compile the template files and the middle class assemblies and other output, easy to check for errors. If the template compiled assembly saved the template file in the case of no direct use of template functions.
5, support for class members. By default, the contents of the template will be compiled into a unified class Render method to go inside, but sometimes we need to add some class properties and methods, then you can use the <#! #> Tags, as a single ordinal number of the start and ordinal that the end is even, so the code does not restrict the location of class members (T4 template requires only written in the last surface).
3, no ASP.Net support. Some template engines, is to simulate an ASP.Net server, and then to ASP.Net as a template to achieve, which requires an ASP.Net server as the host, limiting the use of a template engine.
4, support for batch compilation. You can put multiple templates into the template processor, for a compilation (all template classes are compiled into an assembly to go inside).
XCoder use XTemplate code (code behind XCoder project): Dictionary data = new Dictionary (); data ["Config"] = Config; data ["Tables"] = Tables; data ["Table"] = table; / / declare the template engine Template tt = new Template (); Template.Debug = Config.Debug; foreach (String item in ss) {if (item.EndsWith (“scc” , StringComparison.Ordinal)) continue; String tempFile = item; if (! Path.IsPathRooted (tempFile)

String class in C # a few methods (IndexOf, LastIndexOf, Substring)

String.LastIndexOf
If you find the character, for the value of the index; or if not found, or -1.
Label1.Text = str.Substring (11,7); / / returns “international things through Deng Wen *”
Label1.Text = str.IndexOf (“Deng”, 15,10). ToString () ; / / return -1
String.LastIndexOf method
Label1.Text = str.IndexOf (“earnings base”, 10). ToString ();// return 21 Description: This is from the first 10 character began to search from.
value: To find the Unicode character.
String.LastIndexOf (String, Int32, Int32) Reports the specified String within this instance of the last match the index position. Search at the specified character position and examines a specified number of character positions.
String.LastIndexOf (String) report specified String within this instance of the last match the index position.
String.LastIndexOf (Char, Int32) report an instance of the specified Unicode character in the last match in the index. The search starts at a specified character position.
String.LastIndexOf (String, Int32, Int32, StringComparison) Reports the specified String object in this instance within the last match the index position. Parameter specifies the current string, starting search position, to search for the current number of characters in the string and the string to be used to specify the type of search.
String.LastIndexOf (String, Int32, StringComparison) report the specified string in the current String object in the last match of the index. Parameter specifies the current string, starting search position, and to specify the type of search string.
String.Substring (Int32, Int32) retrieves a substring from this instance. Substring from the specified character position and has a specified length.
string str = “Shenzhen Tong Ying Deng-based International Industrial Co., Ltd. * Shenzhen Wen Ying things based International Industrial Co., Ltd. Tong Wen Tang matter”;
report this instance of the specified character in the first match in the index. Search at the specified character position and examines a specified number of character positions.
Description: In the search character within the specified range, this range is above the input parameters, understood, starting at index 0 to the specified value within position to find the last match of the string position. Example, 0-8 does not “Deng” word, so return -1,0-20 range, there is a “Tang” word 14 position in the index range of 0-33 has two “Deng” word, because LastIndexOf is to return the index position of the last match, so back to 32 instead of 14.
retrieves a substring from this instance.
Label1.Text = str.IndexOf (“Deng”, 15,20). ToString ();// return -32 note: the first 15 characters from the beginning to find, to find the range is from the first 15 characters after the start of 20 characters, from the first 15-35 characters in the search.
report specified Unicode character or String within this instance of the last match the index position.
Example:
return values ??(Int32):
parameters
C # String class in several ways (IndexOf, LastIndexOf, Substring)
String.Substring method
Example:
String.IndexOf (value, startIndex, count)
Label1.Text = str.LastIndexOf (“Deng”, 8). ToString ();// return -1
string str = “Shenzhen Tong Ying Deng-based International Industrial Co., Ltd. * Shenzhen Wen Ying things based International Industrial Co., Ltd. Tong Wen Tang matter”;
String.LastIndexOf (Char, Int32, Int32) report specified Unicode characters in the substring within this instance in the last match the index position. Search at the specified character position and examines a specified number of character positions.
summarize:
String.LastIndexOf (String, Int32) Reports the specified String within this instance of the last match the index position. The search starts at a specified character position.
String.LastIndexOf (Char) report an instance of the specified Unicode character in the last match in the index.
Label1.Text = str.LastIndexOf (“Deng”, 20). ToString ();// return 14
Example:
Substring a string intercepts the return value is a truncation the string.
Label1.Text = str.IndexOf (“earnings base”). ToString ();// return 3
Name Description
Label1.Text = str.Substring (11); / / return “International Tong Wen Tang * things based Industrial Co., Ltd. Shenzhen Ying Deng international incident through text”
IndexOf, LastIndexOf is to return a position is an integer value; not find were to return -1;
startIndex: start search position.
Name Description
Label1.Text = str.LastIndexOf (“Deng”). ToString ();// return -1
count: the number of character positions to examine.
String.Substring
Label1.Text = str.LastIndexOf (“Deng”, 33). ToString ();// return 32
2011 年 04 月 01 日
String. LastIndexOf (String, StringComparison) report the specified string in the current String object in the last match of the index. Parameter specifies the string used to specify the type of search.
String.IndexOf method (Char, Int32, Int32)
Label1.Text = str.IndexOf (“China”). ToString ();// return -1
String.IndexOf
String.Substring (Int32) retrieves a substring from this instance. Substring from the specified character position.
Label1.Text = str.LastIndexOf (“Tang”). ToString ();// return 32
IndexOf is from left to right Charles, LastIndexOf is from right to left check, whether or LastIndexOf IndexOf , the index sequence is from left to right (starting value is 0)
string str = “Shenzhen Tong Ying Deng-based International Industrial Co., Ltd. * Shenzhen Wen Ying things based International Industrial Co., Ltd. Tong Wen Tang matter”;

Learning to use ASP.Net the “string” (3): string class of non-expansion method

Add or remove blank: protectedvoid Button1_Click (object sender, EventArgs e) {string str, s1, s2, s3, s4, s5, s6, s7, r = “\ n”; str = “Asp”; s1 = gt; str.PadLeft (str.Length 4) lt; / /> Asp Asp str.PadLeft (7, * < //>**** Asp Asp ****< str = "Asp"; s5 = gt; str.TrimStart () lt; / /> Asp Asp Asp copy and quote: protectedvoid Button1_Click (object sender, EventArgs e) {string str1 = “abc”; string str2 = string.Copy (str1); string str3 = (string) str1.Clone (); bool b1 = string.ReferenceEquals (str1, str2); / / Falsebool b2 = string.ReferenceEquals (str1, str3); / / TrueTextBox1.Text = string.Format (“{0} \ n {1} “, b1, b2);}
intercept: protectedvoid Button1_Click (object sender, EventArgs e) {string str, s1, s2, r =” \ n “; str =” 123456789 “; s1 = str.Substring (2); / / 3456789s2 = str.Substring (2, 4); / / 3456TextBox1.Text = string.Concat (s1 r s2);}
contrast: protectedvoid Button1_Click (object sender, EventArgs e) {string str1 = “1001ABC”; string str2 = “1001abc”; int n1, n2, n3, n4, n5, n6, n7, n8, n9, n0; n1 = str1.CompareTo (str2); / / 1n2 = str2.CompareTo (str1); / /-1n3 = str1.CompareTo (str1); / / 0n4 = string.Compare (str1, str2); / / 1n5 = string.Compare (str2, str1); / / – 1n6 = string.Compare (str1, str2, true); / / 0n7 = string.Compare (str1, 0, str2, 0, 4); / / 0n8 = string.CompareOrdinal (str1, str2); / /-32n9 = string.CompareOrdinal (str2, str1); / / 32n0 = string.CompareOrdinal (str1, 0, str2, 0, 4); / / 0TextBox1.Text = string.Format (“{0} \ n {1} \ n { 2} \ n {3} \ n {4} \ n {5} \ n {6} \ n {7} \ n {8} \ n {9} “, n1, n2, n3, n4, n5, n6 , n7, n8, n9, n0);}
end to match: protectedvoid Button1_Click (object sender, EventArgs e) {string str = “Asp.Net 3.5″; bool b1, b2, b3, b4; b1 = str . StartsWith (“asp “);// Falseb2 = str.StartsWith (” asp “, StringComparison.CurrentCultureIgnoreCase); / / Trueb3 = str.StartsWith (” asp “, true, null); / / Trueb4 = str.EndsWith ( “5″); / / TrueTextBox1.Text = string.Format (“{0} \ n {1} \ n {2} \ n {3}”, b1, b2, b3, b4);}
insertion and removal: protectedvoid Button1_Click (object sender, EventArgs e) {string str, r = “\ n”, s1, s2, s3; str = “Asp 3.5″; s1 = str.Insert (3, “. Net” ); / / Asp.Net 3.5s2 = str.Remove (3); / / Asps3 = str.Remove (0, 4); / / 3.5TextBox1.Text = string.Concat (s1, r, s2, r, s3 );}
contains: protectedvoid Button1_Click (object sender, EventArgs e) {string str = “Asp.Net 3.5″; bool b1, b2, b3; b1 = str.Contains ( ; / / Falseb2 = str.Contains ( ; / / Trueb3 = str.Contains (“Net”); / / TrueTextBox1.Text = string.Format (“{0} \ n {1} \ n {2}”, b1, b2, b3);}
replacement: protectedvoid Button1_Click (object sender, EventArgs e) {string str, r = “\ n”, s1, s2; str = “Asp.Net 3.5″; s1 = str . Replace ( ; / / Asp-Net 3-5s2 = str.Replace (“3.5″, “4.0″); / / Asp.Net 4.0TextBox1.Text = string.Concat (s1, r, s2);}
to copy part of the character array: protectedvoid Button1_Click (object sender, EventArgs e) {char [] cs = { ; string str = “ABCDEFG”; str.CopyTo (1, cs, 3, 2); TextBox1.Text = string.Join (“”, cs); / / 123BC6789}
string class member of the non-extension: / * class method * / string.Compare; / / contrast, returns 1, 0 or -1 string.CompareOrdinal; / / contrast, returns number poor string.Concat; / / merge string.Copy; / / copy string.Equals; / / if the same value string.Format; / / formatted output string.Intern; / / string.IsInterned; / / string.IsNullOrEmpty; / / it is null or Empty string.IsNullOrWhiteSpace; / / whether it is null or Empty or blank characters string.Join; / / connector string.ReferenceEquals; / / if the same instance, inherited from Object / * variable * / string.Empty ; / / empty string, with “” / * properties * / Length; / / / * object method * / Clone; / / reference CompareTo; / / Contains; / / contains the CopyTo; / / copy the part into a character array EndsWith ; / / Ending Equals; / / if the same value of GetEnumerator; / / Get enumerator GetHashCode; / / GetType; / / GetTypeCode; / / IndexOf; / / Find IndexOfAny; / / depending on the character array to find Insert; / / insert IsNormalized; / / LastIndexOf; / / from the right to find LastIndexOfAny; / / array of characters from the right under the search Normalize; / / PadLeft; / / from the left to add spaces or other characters PadRight; / / add spaces or other from the right Character Remove; / / Remove Replace; / / replace Split; / / split StartsWith; / / first match Substring; / / intercept ToLower; / / turn lower ToLowerInvariant; / / switch to lower case, use of regional case rules ToString; / / ToUpper; / / turn caps ToUpperInvariant; / / switch to uppercase, use of regional case rules Trim; / / delete about blank TrimEnd; / / delete the right blank TrimStart; / / delete left blank
case conversion: protectedvoid Button1_Click ( object sender, EventArgs e) {TextBox1.TextMode = TextBoxMode.MultiLine; string str = “Asp.Net”, s1, s2, s3, s4; s1 = str.ToUpper (); / / ASP.NETs2 = str.ToUpperInvariant ( ); / / ASP.NETs3 = str.ToLower (); / / asp.nets4 = str.ToLowerInvariant (); / / asp.netTextBox1.Text = string.Concat (s1 “\ n” s2 “\ n ” s3 ” \ n ” s4);}
2011 年 07 月 05 日
is the same: protectedvoid Button1_Click (object sender, EventArgs e) {string str1 =” Asp.Net “, str2 = “ASP.NET”; bool b1, b2, b3, b4, b5, b6, b7; b1 = string.Equals (str1, str2); / / Falseb2 = string.Equals (str1, str2, StringComparison.CurrentCultureIgnoreCase); / / Trueb3 = str1.Equals (str2); / / Falseb4 = str1.Equals (str2, StringComparison.CurrentCultureIgnoreCase); / / Truestring str3 = str1; b5 = string.ReferenceEquals (str1, str3); / / Truestr1 = str1. ToLower (); str2 = str2.ToLower (); b6 = str1 == str2; / / Trueb7 = string.ReferenceEquals (str1, str2); / / FalseTextBox1.Text = string.Format (“{0} \ n {1 } \ n {2} \ n {3} \ n {4} \ n {5} \ n {6} “, b1, b2, b3, b4, b5, b6, b7);}
enumeration device: protectedvoid Button1_Click (object sender, EventArgs e) {/ / need using System.Collections; string str = “Asp.Net 3.5″; IEnumerator Enum = str.GetEnumerator (); while (Enum.MoveNext ()) {TextBox1. Text = string.Format (“{0} |”, Enum.Current); / / Asp |.Net| 3 |.5 |}}
find: protectedvoid Button1_Click (object sender, EventArgs e) {string str = “Asp.Net 3.5″; int n1, n2, n3, n4, n5, n6, n7; n1 = str.IndexOf ( ; / / 3n2 = str.LastIndexOf ( ; / / 9n3 = str.IndexOf ( 4); / / 9n4 = str.IndexOf (“NET”); / /-1n5 = str.IndexOf (“NET”, StringComparison.CurrentCultureIgnoreCase); / / 4n6 = str.IndexOfAny (newchar [] { ); / / 8n7 = str.LastIndexOfAny (newchar [] { ); / / 10TextBox1.Text = string.Format (“{0} \ n {1} \ n {2} \ n {3} \ n {4} \ n {5} \ n {6}”, n1, n2, n3 , n4, n5, n6, n7);}
split: protectedvoid Button1_Click (object sender, EventArgs e) {string str, r = “\ n”; str = “1:2-34:5 – 6| 7:8-9 “; string [] arr1 = str.Split ( ; TextBox1.Text = string.Join (” / “, arr1) r; / / 1:2-3 / 4:5-6 / / 7:8-9 / string [] arr2 = str.Split ( ; TextBox1.Text = string.Join (“/”, arr2) r; / / 1 / 2-3 / 4 / 5-6 / / 7 / 8-9 / string [] arr3 = str.Split ( ; TextBox1.Text = string.Join (“/”, arr3) r; / / 1 / 2 / 3 / 4 / 5 / 6 / / 7 / 8 / 9 / string [] arr4 = str.Split (newchar [] { – ); TextBox1.Text = string.Join (“/”, arr4) r; / / 1 / 2 / 3 / 4 / 5 / 6 / / 7 / 8 / 9 / char [] cs = { ; string [] arr5 = str.Split (cs); TextBox1.Text = string.Join (“/”, arr5) r; / / 1 / 2 / 3 / 4 / 5 / 6 / / 7 / 8 / 9 / string [] arr6 = str.Split (cs, 3); TextBox1.Text = string.Join (“/”, arr6) r; / / 1 / 2 / 34:5-6| 7:8-9 / string [] arr7 = str.Split (cs, StringSplitOptions.RemoveEmptyEntries); TextBox1.Text = string.Join (“/”, arr7 ) r; / / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / string [] arr8 = str.Split (cs, int.MaxValue, StringSplitOptions.RemoveEmptyEntries); TextBox1.Text = string . Join (“/”, arr8) r; / / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / string [] arr9 = str.Split (newchar [] { , StringSplitOptions.RemoveEmptyEntries); TextBox1.Text = string.Join (“/”, arr9) r; / / 1:2-3 / 4:5-6 / 7:8-9 /}
whether Air: protectedvoid Button1_Click (object sender, EventArgs e) {bool b1, b2, b3, b4, b5; b1 = string.IsNullOrEmpty (null); / / Trueb2 = string.IsNullOrEmpty (string.Empty); / / Trueb3 = string . IsNullOrEmpty (“”); / / Trueb4 = string.IsNullOrWhiteSpace (“”); / / Trueb5 = string.IsNullOrWhiteSpace (“123″); / / FalseTextBox1.Text = string.Format (“{0} \ n {1 } \ n {2} \ n {3} \ n {4} “, b1, b2, b3, b4, b5);}
connection with the series: protectedvoid Button1_Click (object sender, EventArgs e) {string str ; str = string.Concat (“Asp”, “Net”, “\ x20″, 3, 5); / / Asp.Net 3.5TextBox1.Text = str “\ n” ; int [] nArr = {1, 3, 2, 4, 3, 5}; str = string.Join (“*”, nArr); / / 1 * 3 * 2 * 4 * 3 * 5TextBox1.Text = str “\ n”; str = “Asp.Net”; str = string.Join (“|”, str.ToArray ()); / / Asp |.NetTextBox1.Text = str “\ n”; string [] sArr = {“one”, “two”, “three”, “four”, “five”, “six”, “seven”, “eight”, “nine”, “ten”}; str = string.Join (“;”, sArr, 1, 3); / / two; three; fourTextBox1.Text = str “\ n”;}

Cast and indexof, lastindexof and substring

Return (Int32):
Label1.Text = str.IndexOf (“Deng”, 15,10). ToString ();// return -1
string str = “profit-based Industrial Co., Shenzhen Tong Wen Tang international incident * Profit-based Industrial Co., Ltd. Shenzhen International Culture through Tang matter “;
IndexOf is from left to right Charles, LastIndexOf is from right to left check, whether IndexOf or LastIndexOf, the index sequence is from left to right (starting value is 0)
value: To find the Unicode character.
Label1.Text = str.Substring (11); / / returns “international incident through text * Deng Ying-based Industrial Co., Ltd. Shenzhen International Deng things through text”
String.LastIndexOf (Char, Int32) report specified Unicode character In this instance the last match the index position. The search starts at a specified character position.
retrieves a substring from this instance.
Description: In the search character within the specified range, this range is above the input parameters, understood, starting at index 0 to the specified value within position to find the last match of the string position. Example, 0-8 does not “Deng” word, so return -1,0-20 range, there is a “Tang” word 14 position in the index range of 0-33 has two “Deng” word, because LastIndexOf is to return the index position of the last match, so back to 32 instead of 14.
Label1.Text = str.LastIndexOf (“Deng”). ToString ();// return -1
string str = “Shenzhen Tong Ying Deng-based International Industrial Co., Ltd. * Shenzhen Wen Ying matter base International Industrial Co., Ltd. Tong Wen Tang matter “;

String.IndexOf method (Char, Int32, Int32)
Substring a string interception after interception return value is a string.
Label1.Text = str.IndexOf (“China”). ToString ();// return -1
String.Substring method
String.LastIndexOf (String, Int32, Int32) report specified String within this instance of the last match the index position. Search at the specified character position and examines a specified number of character positions.
Example:
String.LastIndexOf (String, Int32) Reports the specified String within this instance of the last match the index position. The search starts at a specified character position.
summarize:
Name Description
String.LastIndexOf (Char, Int32, Int32) Reports the specified Unicode character within this instance of the substring in the last The index position of a match. Search at the specified character position and examines a specified number of character positions.
Label1.Text = str.LastIndexOf (“Deng”, 20). ToString ();// return 14
2011 年 04 月 08 日
startIndex: search starting position.
String.LastIndexOf (String, Int32, StringComparison) report the specified string in the current String object in the last match of the index. Parameter specifies the current string, starting search position, and to specify the type of search string.

Label1.Text = str.LastIndexOf (“Deng”, 8). ToString ();// return -1
If you find the character, for the value of the index; Otherwise, if not found, or -1.
String.LastIndexOf (String, StringComparison) report the specified string in the current String object in the last match of the index. Parameter specifies the string used to specify the type of search.
C # String class in several ways (IndexOf, LastIndexOf, Substring)
Example:
string str = “profit-based Industrial Co., Ltd. Shenzhen International Culture through Tang matter * Profit-based Industrial Co., Ltd. Shenzhen International Deng things through text “;
String.Substring
Label1.Text = str.IndexOf (” earnings base “, 10). ToString () ; / / returns 21 Description: This is the first 10 characters from the search from the beginning.
String.IndexOf (value, startIndex, count)
String.Substring (Int32) retrieves a substring from this instance. Substring from the specified character position.
Name Description
String.Substring (Int32, Int32) retrieves a substring from this instance. Substring from the specified character position and has a specified length.
Label1.Text = str.LastIndexOf (“Deng”, 33). ToString ();// return 32
Example:
report this instance of the specified character in the first match of the the index. Search at the specified character position and examines a specified number of character positions.
Label1.Text = str.IndexOf (“earnings base”). ToString ();// return 3
String.LastIndexOf (Char) report an instance of the specified Unicode character in the last match of the index position.
fallen heroes of the Mo-chi, and the world when there is harmony! in C # on the numeric type to character type or inverse transform, we can not cast, but the int double float cast to each other, but there are several types of classes can be achieved value is converted to a character type conversion Convert class, There is also a data type is the beginning of class, such as Int16, Int32, etc. like you can convert that to achieve the following two conversion int mmm = Int32.Parse (mm); or int mmm = Convert.Int32 (mm)
String.LastIndexOf (String, Int32, Int32, StringComparison) Reports the specified String object in this instance within the last match the index position. Parameter specifies the current string, starting search position, to search for the current number of characters in the string and the string to be used to specify the type of search.
String.LastIndexOf (String) report specified String within this instance of the last match the index position.
Label1.Text = str.LastIndexOf (“Tang”). ToString ();// return 32
Kyushu
IndexOf, LastIndexOf is to return a position, is an integer value; not find were to return -1;
count: the number of character positions to examine.
Label1.Text = str.IndexOf (“Deng”, 15,20). ToString ();// return -32 note: the first 15 characters from the beginning to find, to find the range is from the first 15 characters after the start of 20 characters, from the first 15-35 characters in the search.
parameters
Label1.Text = str.Substring (11,7); / / returns “international things through Deng Wen *”

EnyimMemcached expansion reproduced http://www.star2008.cn/blogview.asp?logID=1737

November 25, 2010
operation: a new window to view pictures
saw the beginning of the next EnyimMemcached structure, all operations are inherited from the Operation class, each sub-classes implement their own ExcuteAction

operation: a new window to view all images
operations provided by the MemCachedClient the facade of foreign
Memcached itself provides much of the command, also add, get, set, incr, decr, replace, delete, stats, and several other client package for these operations, in general, call, or very simple.

in the course, I need to traverse the current buffer, for all keys, EnyimMemCached does not provide traversal. Check in online the next, http://www.cnblogs.com/sunli/archive/2008/11/01/13 24153.html provided through the idea is very simple, with “stats item” and “stats cachedump 1 0 “command can be realized through, I have to do is encapsulate the two commands mentioned above, Operation, is to achieve the following code: using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Enyim.Caching.Memcached {/ / /

/ / / expand access to all key operations by wm / / / internal class CacheDumpOperation: Operation {public CacheDumpOperation (ServerPool pool, string regex): base (pool) {this.regexquery = regex;} private ArrayList results; / / / / / / the result set of key / / / public ArrayList Results {get {return results;} } private string regexquery = “”; / / / / / / query the regular expression / / / public string RegexQuery {get {return regexquery;} set {regexquery = value;}} protected override bool ExecuteAction () {List lstParams = new List (); ArrayList arrKeys = new ArrayList (); foreach (MemcachedNode server in this.ServerPool.WorkingServers) {using (PooledSocket ps = server.Acquire ()) / / step1 {if (ps! = null) {ps.SendCommand (“stats items”); while (true) {string line = ps.ReadResponse (); if (String.Compare (line, “END”, StringComparison.Ordinal ) == 0) break; if (line.Length <6| String.Compare (line, 0, "STAT", 0, 5, StringComparison.Ordinal)! = 0) {continue;} string para = line.Split ( [ 1]; if (! lstParams.Contains (para)) {lstParams.Add (para);}}}} using (PooledSocket psDump = server.Acquire ()) / / step2 {if (psDump! = null) {foreach (string para in lstParams) {psDump.SendCommand (string.Format ("stats cachedump {0} {1}", para, 0)); while (true) {string lineDump = psDump.ReadResponse () ; if (String.Compare (lineDump, "END", StringComparison.Ordinal) == 0) break; if (lineDump.Length <6| String.Compare (lineDump, 0, "ITEM", 0, 5, StringComparison. Ordinal)! = 0) {continue;} string key = lineDump.Split ( #39;) [1]; if (this.regexquery == "") {arrKeys.Add (key);} else {if (Regex.IsMatch (key, this.regexquery)) {arrKeys.Add (key);}}}}}}} this.results = arrKeys; return true;}}} add method in MemcachedClient
/ / / / / / Get all keys set / / / / / / public System.Collections.ArrayList GetKeys () {using (CacheDumpOperation g = new CacheDumpOperation (this.pool, “”)) {g.Execute (); return g.Results;}} / / / / / / find a match according to a regular cache key collection / / / / / / / / / public System.Collections.ArrayList GetKeys (string regex) {using (CacheDumpOperation g = new CacheDumpOperation (this.pool, regex)) {g.Execute ( ); return g.Results;}}
Memcached look at some recent data, in. net client under its php and other languages ??than less, I chose EnyimMemcached (http://www.codeplex. com / enyimmemcached /), mainly to see the public comment a few days ago Network Technology blog, we found that they are using the client (http://it.dianping.com/using_attribute_and_piab_to _hybrid_memcached_and_data_access_layer.htm)

Default Encoding of Strings in ASP.NET MVC

This happened when you went from this code: to this code: MvcHtmlString The solution to this is MvcHtmlString. It a new class that <%: is aware of and if you change your helper to return one of these, you l get back the behavior you expect. In effect, if you are returning one of these objects, you e telling the renderer that you know what you e doing and you l handle any encoding requirements and it should just display whatever you pass in.
So how to fix LoginLink ()? Simply change its signature to return an MvcHtmlString, and create one when you are returning, like so. Here the original: publicstatic String LoginLink (this HtmlHelper helper) {string currentControllerName = (string) helper . ViewContext.RouteData.Values ??["controller"]; string currentActionName = (string) helper.ViewContext.RouteData.Values ??["action"]; bool isAuthenticated = helper.ViewContext.HttpContext.Request.IsAuthentic ated; var sb = new StringBuilder (); if (isAuthenticated) {sb.Append (“Logged in as”); sb.Append (helper.Encode (helper.ViewContext.HttpCon text.User.Identity.Name)); sb.Append (“”); } sb.Append (“”); else sb.Append (“>”); if (isAuthenticated) {sb.Append (helper.ActionLink (“Logout”, “Logout”, “Account”));} else {sb . Append (helper.ActionLink (“Login”, “Logon”, “Account”));} sb.Append (“”); return sb.ToString ();}
Now just change the return type to MvcHtmlString and call MvcHtmlString.Create (“your string”) when you are ready to return, like so: publicstaticclass LoginLinkHelper {publicstatic MvcHtmlString LoginLink (this HtmlHelper helper) {string currentControllerName = (string) helper.ViewContext.RouteData.Values ??["controller" ]; string currentActionName = (string) helper.ViewContext.RouteData.Values ??["action"]; bool isAuthenticated = helper.ViewContext.HttpContext.Request.IsAuthentic ated; var sb = new StringBuilder (); if (isAuthenticated) {sb. Append (“Logged in as”); sb.Append (helper.Encode (helper.ViewContext.HttpCon text.User.Identity.Name)); sb.Append (“”);} sb.Append (“”); else sb.Append (“>”); if (isAuthenticated) {sb.Append (helper.ActionLink (“Logout”, “Logout”, “Account”));} else {sb.Append (helper.ActionLink (“Login” , “Logon”, “Account”));} sb.Append (“”); return MvcHtmlString.Create (sb.ToString ());}}
So go forth, and whenever you see <% = in your ASP.NET 4 apps, replace it with <%:, and life will be good. Your apps will be more secure. Cross site scripting attacks will decrease. Hackers will be sad.
This allows you not have to think about whether to use <% = vs. <%: in your views. You can (and should!) always use <%: in your views. I say again, you should always use <%: in your views.
Important: the system detects that your account may have risk of theft, please see the risk warning as soon as possible, and immediately change your password. Close

Note above in the LoginLink method that we are calling helper.Encode (…) when displaying the user name. It possible that a malicious user could register with a name that includes some script tags, and depending on the registration validation or the membership API in place, it might get into our system through those means. If that user then left a comment or did something else that resulted in their username being displayed on the site, it could run some malicious script that might, among other things, redirect all of our site users to a malicious site that could try to exploit their machine. That would be bad.
Encoding by default is a good thing. With ASP.NET 4 this is very easy to do if you just enforce the rules that <% = is no longer used, and is replaced everywhere with <%:. This may result in some breaking changes from existing code that is expecting to render plain strings that contain HTML in them . These can easily be fixed through the use of the MvcHtmlString class described above.
and now looks like this:

But what about your existing code that used to look like this:
Always encode untrusted user inputs.
Summary
2011 年 08 月 19 日


If you have ASP . NET MVC 1 code you are moving to ASP.NET MVC 2 (and ASP.NET 4) you are likely to encounter a problem in which your application starts displaying encoded HTML on the page rather than the actual results of that HTML (eg you see instead of a hyperlink). One of the greatest features added to ASP.NET 4 is a new way to render content that is encoded by default in your .aspx / .ascx pages / views. This new syntax uses <%: Model. SomeString%> instead of the ever-popular <% = Model.SomeString%> way of doing it. Note the third character is now a: not an =. It actually takes up a tiny bit less horizontal space – isn that nice of the ASP.NET team to be looking out for us that way (assuming you don use a fixed-width font for your programming / markup, which applies to some tiny percentage of you).
Netease blog security alert : The system detected that your current password is less secure, for your account security, we recommend that you change your password immediately amend the timely closure

intercomparison after selectpower leveling

Kogyo is “upside down” at the end of the year, are a year-end
meters. However, the Olympic sports rongqiao Central Garden, Xidi
and charges, and so consider second-hand, price than a new House at
difference. To the West, for example, suning Rui city early housing
bigger discounts, the price of second-hand homeowners generally has
? New Tiger Web news than second- hand housing your ideas will be

  • only that buyers are “independent persons” power
    The ralatived articles:
    leveling
    least 1000 Yuan / square meters. Recently popular in Jiangbei market
    housing the latest quotations are in 18000 20000 preliminary
    Yuan / square meters … Such a large price gap never had. This
    main criteria for buying a House. Jiangbei Jiangning are Kasai
    the company in the Austrian region of second-hand housing turnover,
    second-hand housing prices higher than new expensive “upside down
    homeowners, resulting in new and second-hand incredible price
    early indeed was the price of SUNY Rui city, but due to the limited
    count down, second-hand housing than new expensive 3000-5000
    leveling
    greater. Express Press Wentao
  • Li bin yesterdaywow power leveling

    a very small possibility that, after the price gap may be even
    water city new fangjunjia 8400 Yuan / square meter, second-hand quote
    expensive than new second-hand, buyer acceptable? “!” in real
    common in many other factors , Jiangbei, Jiangning, as well as the
    “upside down” phenomenon, second-hand housing prices are generally
    Jiangning and new urban area of ??Hexi, second-hand housing turnover
    estate business Director mean get Olympic regional analysis, said
    specials, this year in regulation policies our larger under the
    buying habits have changed. Many people buy a House, are both new
    “upside down” phenomenon has been very obvious. A new affected
    century international apartment offers a special room, price 12500
    are not the same, its price impact disappears, second-hand housing
    subverted. This year, power leveling ,
    5000 Yuan. The industry believes that new and second-hand
    more expensive than a new House 1000 Yuan / square meters, the
    multivariate / sqm, wow power leveling,
    second-hand housing turnover, Jiangbei, power leveling,
    new urban area of ??Hexi, second-hand and new house prices marked
    “phenomenon will continue, capital intensive developers might have
    the impact of a new House, the price gap between late may be more
    but nearly 9000 Yuan / square meters … According to the touring
    happens not just the Hexi corridor. Recently, Jiangning of 21st
    is no exception: tianrun town new fangjunjia 7500 Yuan / square
    largest price difference even more Hexi per square metre of nearly
    stock, the current quotation but 13000 14000 Yuan/m2 , plus taxes
    industry forecast, as the regulation of in-depth, new city
    remains ranked in the forefront, trading volume in the “upside
    previously second-hand housing price effects are great, wow power
    area of ??second-hand housing has many times a new House, in fact not
  • wow power leveling
  • and assume full responsibility. power < br /> leveling, but as markets become increasingly mature, real
    meter, second-hand quote to 8000-8500 Yuan / square meter; Venice
    quality good second-hand housing prices and will not be affected by
  • “near paekyongpower leveling
    stock price 16300 Yuan / sq m, the lowest no 15000 Yuan / square
    down” on prices overall market impact. In the mean time , now it
    boundaries have been broken, the housing itself quality become the
    availability of the real estate community aspects of the conditions
    transactions back to normal. But judging from the recent Nanjing
    inferior new House, instead of supporting a more mature. “The
    Yuan / square meter, and the community of similar second-hand housing
    influence. Developer discount promotion has unwavering, second-hand
    and second-hand, intercomparison after select, “and these new urban
    market manager Li Ning, the area of ??second-hand and new house price
    Newcastle International, Olympic sports, community second-hand