| Mountain's profile蓝色山峰PhotosBlogLists | Help |
|
蓝色山峰面朝大海 春暖花开 December 11 转载:中国房地产市场的危机有可能化解吗?
最近数年来,房价暴涨,政府调控了再调控,结果是越调越高了。基本的事实是:面对中国一路高歌的房价,市场调节是失灵的,政府调控也是失灵的。 (作者: 李昌平 河北大学中国乡村建设研究中心学者) [稿源:上海证券报] April 17 缩水年代心跳加速,无力,发冷,手指哆嗦。很明显的低血糖,Fred那边要了两块饼干,根本就没有效果。没有办法,餐厅的油饼又变小了,中午吃饭的时候就注意到了,吃饭的时候还在想,要不要来三块油饼。以前两块油饼是可以支撑到下班的,想想那么油腻的东西我都吃不饱,但是为什么体重不增加呢?下次不知道该吃什么了,玉米面的馒头看上去倒是很大,可是觉得颜色不对,应该是加了很多人工色素了。白面馒头粘粘的,很难吃,米饭,根本就吃不饱的。
什么东西都开始变小,开始涨价,房价,生活费,年龄都在涨。唯一不涨得就是薪水了。
快下班了,等着,赶紧回去吃东西~~~~~~~~
March 23 随便写写昨晚大学的死党打来电话,聊了很长时间,死党在一个南方的城市买了套房子,工作也非常清闲,重要的是死党很快要结婚了。要结婚的死党突然间感悟很多,我揶揄她是由生活的人,电话中一些精辟不绝,摘录下来,以供我以后参考
1。你知道那种感受么,两个人完完全全生活在一起,任何缺点都暴露无余,那是一种什么样的感觉你根本就没有经历过,你(这里指我)都没有和别人共同生活过一个月……
2。男人是以男人的观点来看女人,女人用女人的观点来找男人,男人和女人根本就不可能了解。
3。不要因为寂寞而寻求一份爱情,这样只会让你更寂寞。
…………………… 还有很多,有时间就在做整理,现在先写一点,免得忘了 February 09 My precious memoryMy precious memory
My English teacher, a little beauty, Basin, asked me to write an article about ethics to practise my English. I think it is more difficult to discuss than to tell a story about ethics. The reason is that people defines it in various ways. Here I decide to tell a story to show my previous memories instead.
When I was in my high school, I had two holidays every year, one is summer holiday and the other is winter one. I was 15 yeas old, a big, tall and young man and just like others that are in the same age, I slept very well every night. In summer holiday, it was very hot and often rained, I always slept with the windows opened. Every raining evening, I heard my father came into my bedroom and closed the windows for my brother and me lightly. In winter, it became very cold. To keep our lives, my father had to wake up very early to work. Every morning, I heard my father came into my bedroom and enswathed the quilt for my brother and me, and then touched our heads kindly. Before long, I heard the sound of motor bike, which means he has set out for work as usual.
My father has few words, but does a lot for us. My brother and I are very lucky and proud of having such a father. January 23 撷葩II相信未来 食指 撷葩很多都是高中时候读过的东西,可惜都找不到了,google都找不到,在这里mark一下--------另: 有一本绿色封面的朦胧诗集,谁有收藏可否一阅
红 豆
李小雨 在天与海的尽头 January 03 NameValueCollection怎么了?很早的时候就开始写一个configuration,但是发现net自带的configuration有些地方让人搞不明白
看下面的代码 app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration> <configSections> <section name="myCustomerSectionA" type="System.Configuration.NameValueSectionHandler"/> <section name="myCustomerSectionB" type="ConfigurationDemoII.CustomerSectionHandlers,ConfigurationDemoII" /> </configSections> <myCustomerSectionA>
<add key="myKeyA" value="myKeyAValueA" /> <add key="myKeyA" value="myKeyAValueB" /> <add key="myKeyB" value="myKeyBValueA" /> <add key="myKeyB" value="myKeyBValueB" /> </myCustomerSectionA> <myCustomerSectionB>
<add key="myKeyA" value="myKeyAValueA" /> <add key="myKeyA" value="myKeyAValueB" /> <add key="myKeyB" value="myKeyBValueA" /> <add key="myKeyB" value="myKeyBValueB" /> </myCustomerSectionB> </configuration>
app.cs
using System;
using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Xml; using System.Configuration; namespace ConfigurationDemoII
{ class Program { static void Main( string[] args ) { try { TestSysNameValueCollection(); Console.WriteLine( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" ); TestMyNameValueCollection(); } catch( Exception ex ) { Console.WriteLine( ex.Message ); Console.WriteLine( ex.StackTrace ); } } private static void TestSysNameValueCollection()
{ NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection( "myCustomerSectionA" ); foreach( string key in nvc.AllKeys ) { Console.WriteLine( key ); Console.WriteLine( nvc[key] ); } } private static void TestMyNameValueCollection()
{ NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection( "myCustomerSectionB" ); foreach( string key in nvc.AllKeys ) { Console.WriteLine( key ); Console.WriteLine( nvc[key] ); } } } class CustomerSectionHandlers : IConfigurationSectionHandler
{ #region IConfigurationSectionHandler 成员
object System.Configuration.IConfigurationSectionHandler.Create( object parent, object configContext, System.Xml.XmlNode section )
{ NameValueCollection col = new NameValueCollection(); foreach( XmlNode childNode in section.ChildNodes )
{ XmlElement root = (XmlElement)childNode; if( root.Name == "add" ) { string key = root.GetAttribute( "key" ); string value = root.GetAttribute( "value" ); col.Add( key, value ); } else if( root.Name == "remove" ) { } else if( root.Name == "clear" ) { } } return col;
} #endregion
} } 运行的结果
myKeyA
myKeyAValueB myKeyB myKeyBValueB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ myKeyA myKeyAValueA,myKeyAValueB myKeyB myKeyBValueA,myKeyBValueB Press any key to continue . . . 能看到什么不同么, Sys自带的namevaluecollection好像把后面新加入的同一个key的信息冲掉了,如果是configuration本身就是这么设计的,那么为何要用NameValueCollection这个容器呢?
我在cnblog的几篇介绍configuration的文章中并没有找到相关的信息 http://msdn.microsoft.com/msdn-online/shared/components/ratings/ratings.aspx?ContentID=_978498&HideDiscuss=1里面也没有这一块类似的介绍
OK, 打开Refelect看看吧 哦,
internal static object CreateStatic(object parent, XmlNode section, string keyAttriuteName, string valueAttributeName)
{ ReadOnlyNameValueCollection collection1; if (parent == null) { collection1 = new ReadOnlyNameValueCollection(new CaseInsensitiveHashCodeProvider(CultureInfo.InvariantCulture), new CaseInsensitiveComparer(CultureInfo.InvariantCulture)); } else { ReadOnlyNameValueCollection collection2 = (ReadOnlyNameValueCollection) parent; collection1 = new ReadOnlyNameValueCollection(collection2); } HandlerBase.CheckForUnrecognizedAttributes(section); foreach (XmlNode node1 in section.ChildNodes) { if (!HandlerBase.IsIgnorableAlsoCheckForNonElement(node1)) { if (node1.Name == "add") { string text1 = HandlerBase.RemoveRequiredAttribute(node1, keyAttriuteName); string text2 = HandlerBase.RemoveRequiredAttribute(node1, valueAttributeName, true); HandlerBase.CheckForUnrecognizedAttributes(node1); collection1[text1] = text2; } else { if (node1.Name == "remove") { string text3 = HandlerBase.RemoveRequiredAttribute(node1, keyAttriuteName); HandlerBase.CheckForUnrecognizedAttributes(node1); collection1.Remove(text3); continue; } if (node1.Name.Equals("clear")) { HandlerBase.CheckForUnrecognizedAttributes(node1);
还是偷懒一下,等着牛人来回答吧
过往的牛人, 请留下高见
|
||||
|
|