﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-龍機傳承-最新评论</title><link>http://www.cnblogs.com/sherrys/CommentsRSS.aspx</link><description>技术空间</description><language>zh-cn</language><pubDate>Sat, 13 Oct 2007 07:08:33 GMT</pubDate><lastBuildDate>Sat, 13 Oct 2007 07:08:33 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:通过 INotifyPropertyChanged 实现观察者模式</title><link>http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722418</link><dc:creator>virus</dc:creator><author>virus</author><pubDate>Sat, 12 Dec 2009 08:42:47 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722418</guid><description><![CDATA[这个是我修改的，大家参考一下吧
/*
 * Created by SharpDevelop.
 * User: haier
 * Date: 2009-12-12
 * Time: 14:00
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace BeautyCode.Console
{
	class Customer:INotifyPropertyChanged {
		private Guid _id;
		
		public Guid Id {
			get { return _id; }
			set { _id = value; }
		}
		private string _name;
		
		public string Name {
			get { return _name; }
			set { _name = value; }
		}
		private string _companyName;
		
		public string CompanyName {
			get { return _companyName; }
			set 
			{
				_companyName = value;
				NotifyPropertyChanged(&quot;CompanyName&quot;);
			}
		}
		private string _phoneNumer;
		
		public string PhoneNumer {
			get { return _phoneNumer; }
			set { _phoneNumer = value; }
		}
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected void NotifyPropertyChanged(string propertyName){
			if(PropertyChanged!=null )
				PropertyChanged(this,new PropertyChangedEventArgs (propertyName ));
		}
	}
	class Program
	{
		private static void WriteCompanyName(Customer customer)
		{
			System.Console.WriteLine(customer.CompanyName );
		}
		public static void Main(string[] args)
		{
			System.Console.WriteLine(&quot;Hello World!&quot;);
			Customer customer=new Customer() ;
			customer.CompanyName=&quot;Kimbanx&quot;;
			WriteCompanyName(customer );
			customer.PropertyChanged+= new PropertyChangedEventHandler(customer_PropertyChanged);
			// TODO: Implement Functionality Here
			customer.CompanyName =&quot;Microsoft&quot;;
			
			System.Console.Write(&quot;Press any key to continue . . . &quot;);
			System.Console.ReadKey(true);
		}

		static void customer_PropertyChanged(object sender, PropertyChangedEventArgs e)
		{
		Type type=typeof(Customer );
		System.Console.WriteLine(type.GetProperty(e.PropertyName ).GetValue(sender ,null));
		}
	}
}<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">virus</a> 2009-12-12 16:42 <a href="http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722418#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:通过 INotifyPropertyChanged 实现观察者模式</title><link>http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722331</link><dc:creator>virus</dc:creator><author>virus</author><pubDate>Sat, 12 Dec 2009 06:19:46 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722331</guid><description><![CDATA[Console.WriteLine(((DemoCustomer)sender).PhoneNumber); 

这个地方是不是应该改成通过反射获取改变的属性的值呢，要不然在实体类中传过来的属性名称还有什么用呢？
你事先是不会知道是那个属性被修改，而是修改的属性值自动的被重新加载
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">virus</a> 2009-12-12 14:19 <a href="http://www.cnblogs.com/sherrys/archive/2009/12/12/800828.html#1722331#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:SQL事务的使用</title><link>http://www.cnblogs.com/sherrys/archive/2009/07/10/661186.html#1581511</link><dc:creator>梦瑶家园</dc:creator><author>梦瑶家园</author><pubDate>Fri, 10 Jul 2009 08:57:27 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2009/07/10/661186.html#1581511</guid><description><![CDATA[不错 学习了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">梦瑶家园</a> 2009-07-10 16:57 <a href="http://www.cnblogs.com/sherrys/archive/2009/07/10/661186.html#1581511#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 处理简单的 Xml</title><link>http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382780</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Wed, 26 Nov 2008 08:45:43 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382780</guid><description><![CDATA[这只是比较简单的操作 xml，更耐人寻味的还在更深处。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2008-11-26 16:45 <a href="http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382780#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL 处理简单的 Xml</title><link>http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382505</link><dc:creator>canbeing</dc:creator><author>canbeing</author><pubDate>Wed, 26 Nov 2008 05:52:34 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382505</guid><description><![CDATA[好文啊，耐人寻味，顶<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">canbeing</a> 2008-11-26 13:52 <a href="http://www.cnblogs.com/sherrys/archive/2008/11/26/775511.html#1382505#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 通过 INotifyPropertyChanged 实现观察者模式</title><link>http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1254016</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Mon, 14 Jul 2008 05:45:38 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1254016</guid><description><![CDATA[@SharpCoder<br>没有任何作用？你可以拿例子去试试就知道是否有作用了。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2008-07-14 13:45 <a href="http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1254016#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 通过 INotifyPropertyChanged 实现观察者模式</title><link>http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1253499</link><dc:creator>SharpCoder</dc:creator><author>SharpCoder</author><pubDate>Mon, 14 Jul 2008 00:51:10 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1253499</guid><description><![CDATA[楼主，你这里实现INotifyPropertyChanged接口没有任何作用啊！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">SharpCoder</a> 2008-07-14 08:51 <a href="http://www.cnblogs.com/sherrys/archive/2008/07/14/800828.html#1253499#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 最新主流Bios设置及超频图文全解</title><link>http://www.cnblogs.com/sherrys/archive/2008/04/26/573833.html#1172055</link><dc:creator>29a</dc:creator><author>29a</author><pubDate>Sat, 26 Apr 2008 04:41:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/04/26/573833.html#1172055</guid><description><![CDATA[^_^  顶 谢谢楼主的技术文章 对我帮助很大<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">29a</a> 2008-04-26 12:41 <a href="http://www.cnblogs.com/sherrys/archive/2008/04/26/573833.html#1172055#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在web项目中的类库中引用webservice 在部署后更改webservice路径的方法</title><link>http://www.cnblogs.com/sherrys/archive/2008/03/14/630351.html#1105139</link><dc:creator>Thomaszhou</dc:creator><author>Thomaszhou</author><pubDate>Fri, 14 Mar 2008 02:28:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/03/14/630351.html#1105139</guid><description><![CDATA[--引用--------------------------------------------------<br>谢里斯: @XX0054<br>您的第一种方式是很方便的，不过 webconfig 就显得比较难得看了，不知道能否在发布后直接更改 Copy 在 web.config 里面的内容而达到动态更新的效果。如果使用您说的第二种方式，其实跟直接在 app.config 配制好之后发布是一样的道理，通过服务器端来设置动态的 Url 也是不能在发布后改动的，改动了就需要重新编译再发布了，也是比较麻烦的方法。<br>--------------------------------------------------------<br>如果使用您说的第二种方式，其实跟直接在 app.config 配制好之后发布是一样的道理，通过服务器端来设置动态的 Url 也是不能在发布后改动的，改动了就需要重新编译再发布了，也是比较麻烦的方法。<br>-------------------------------------------------------------<br>这段不对,为何不用读取web.config的值赋给Service1.Url呢?这样直接配置web.config就可以了,比你那种方法方便很多.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">Thomaszhou</a> 2008-03-14 10:28 <a href="http://www.cnblogs.com/sherrys/archive/2008/03/14/630351.html#1105139#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在web项目中的类库中引用webservice 在部署后更改webservice路径的方法</title><link>http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090482</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Tue, 04 Mar 2008 09:33:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090482</guid><description><![CDATA[@XX0054<br>您的第一种方式是很方便的，不过 webconfig 就显得比较难得看了，不知道能否在发布后直接更改 Copy 在 web.config 里面的内容而达到动态更新的效果。如果使用您说的第二种方式，其实跟直接在 app.config 配制好之后发布是一样的道理，通过服务器端来设置动态的 Url 也是不能在发布后改动的，改动了就需要重新编译再发布了，也是比较麻烦的方法。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2008-03-04 17:33 <a href="http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090482#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 在web项目中的类库中引用webservice 在部署后更改webservice路径的方法</title><link>http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090330</link><dc:creator>XX0054</dc:creator><author>XX0054</author><pubDate>Tue, 04 Mar 2008 07:51:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090330</guid><description><![CDATA[LZ的做法比较优雅，但是有些费劲，其实最简单的做法是将app.config中关于WebService配置的信息拷贝到web.config中就可以了，Settings.settings 读取都是一样的，可以从app.config也可以从web.config中读。<br>还有一种方法是调用WebService时动态指定Url也可达到目的：Service1.Url = NewUrl;<br>上述有无谬误，请LZ和大伙指正。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">XX0054</a> 2008-03-04 15:51 <a href="http://www.cnblogs.com/sherrys/archive/2008/03/04/630351.html#1090330#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL远程连接</title><link>http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035287</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Fri, 11 Jan 2008 06:54:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035287</guid><description><![CDATA[@春申<br>很抱歉，我很少使用到 MySql，所以对于 MySql 的远程连接设置不是很清楚，我上述的两种方法中也没有测试远程连接 MySql ，不过你可以尝试下使用第二种方法 通过设置 provider_name、data_source、location、provider_string 和 catalog 这几个参数来尝试下，我想应该是可以的。<br><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2008-01-11 14:54 <a href="http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035287#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL远程连接</title><link>http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035152</link><dc:creator>春申</dc:creator><author>春申</author><pubDate>Fri, 11 Jan 2008 05:38:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035152</guid><description><![CDATA[你好！<br>看了您的文章，希望请教您几个问题。<br>在Windows XP SP2环境下，SQL Server 2005数据库，分别访问局域网内的和外部网通公司的硬盘上的MySQL数据库。<br>访问的目的是进行SSIS包设计。<br>可以将安装了MySQL的机器作为SQL Server 2005的一个链接服务器吗？这样MySQL中的一个数据库实例就可以直接被SQL Server 2005的查询调用了。<br>请问这样的操作，有什么方法吗？应该如何设置？<br>谢谢！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">春申</a> 2008-01-11 13:38 <a href="http://www.cnblogs.com/sherrys/archive/2008/01/11/678420.html#1035152#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 名牌网站收录</title><link>http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926651</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Tue, 16 Oct 2007 13:37:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926651</guid><description><![CDATA[汗```和和。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2007-10-16 21:37 <a href="http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926651#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 名牌网站收录</title><link>http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926644</link><dc:creator>呆呆虫</dc:creator><author>呆呆虫</author><pubDate>Tue, 16 Oct 2007 13:28:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926644</guid><description><![CDATA[小孩子~~你这是什么名牌网站收录呀。应该称之为知名搜索引擎登录口。还有不要忘记了加一个www.365.com<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">呆呆虫</a> 2007-10-16 21:28 <a href="http://www.cnblogs.com/sherrys/archive/2007/10/16/574074.html#926644#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Sql 2000 中行转列的查询方法</title><link>http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921049</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Thu, 11 Oct 2007 06:57:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921049</guid><description><![CDATA[@≮羊羔&amp;lt;&amp;gt;羔羊≯<br><br>~^_^<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2007-10-11 14:57 <a href="http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921049#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Sql 2000 中行转列的查询方法</title><link>http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921021</link><dc:creator>≮羊羔&amp;lt;&amp;gt;羔羊≯</dc:creator><author>≮羊羔&amp;lt;&amp;gt;羔羊≯</author><pubDate>Thu, 11 Oct 2007 06:41:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921021</guid><description><![CDATA[嗯学习了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">≮羊羔&lt;&gt;羔羊≯</a> 2007-10-11 14:41 <a href="http://www.cnblogs.com/sherrys/archive/2007/10/11/848124.html#921021#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我们俩</title><link>http://www.cnblogs.com/sherrys/archive/2007/09/10/568830.html#888969</link><dc:creator>野菊花</dc:creator><author>野菊花</author><pubDate>Mon, 10 Sep 2007 13:16:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/09/10/568830.html#888969</guid><description><![CDATA[我们俩的日子里的黄金<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">野菊花</a> 2007-09-10 21:16 <a href="http://www.cnblogs.com/sherrys/archive/2007/09/10/568830.html#888969#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL使用OUTER JOIN查询，使用WHERE与AND的区别。</title><link>http://www.cnblogs.com/sherrys/archive/2007/05/08/630433.html#739005</link><dc:creator>谢里斯</dc:creator><author>谢里斯</author><pubDate>Tue, 08 May 2007 06:34:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/05/08/630433.html#739005</guid><description><![CDATA[@yanlin<br><br>outer 是一个修饰符，不能单独使用的。在使用Join的时候可以省略的，但是比如在使用OUTER APPLY的时候outer就不可以省略了。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">谢里斯</a> 2007-05-08 14:34 <a href="http://www.cnblogs.com/sherrys/archive/2007/05/08/630433.html#739005#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: SQL使用OUTER JOIN查询，使用WHERE与AND的区别。</title><link>http://www.cnblogs.com/sherrys/archive/2007/05/03/630433.html#735196</link><dc:creator>yanlin</dc:creator><author>yanlin</author><pubDate>Thu, 03 May 2007 07:20:00 GMT</pubDate><guid>http://www.cnblogs.com/sherrys/archive/2007/05/03/630433.html#735196</guid><description><![CDATA[outer 在使用的时候只有和left or right 搭配的情况吗？<br>可不可以单独使用列？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sherrys/" target="_blank">yanlin</a> 2007-05-03 15:20 <a href="http://www.cnblogs.com/sherrys/archive/2007/05/03/630433.html#735196#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
