老地址

今天登录上海人社网,才发现自己的社保帐号的联系方式一直是14年前刚毕业的地址。

杨浦区 国年路65弄11号403室

那时的五角场,好像那个小巨蛋刚修好。房价还没有这么高,一切才刚开始不久。

美国银行间转账的routing number,ACH和ABA的差别

这篇文章讲得比较清楚

下面这个也可以

Difference Between ABA and ACH Routing Numbers

简单来说,不像中国有银联,他们有两个系统,ACH比较慢,但是不收费,批量处理,适合发工资,付水电煤等账单。

ABA也包括了ACH,格式一样。都是9位,ABA可以用于wire transfer或者是纸质的check收钱和送钱,而wire是收费的,当天就能到,纸check虽然便宜,但一般也要花钱。

好复杂,还是在第一个链接里的各个银行自家页面去查吧。chase银行不错的,只有一个routing number,wells fargo就不行,容易搞混。

 

equality in c#

  1. 单个参数的equals 是Object类的虚方法可以在子类中实现override,如果要override,可以调用第三点接口里的具体类型的Equals, 如果不override, 则 a call to the Equals(Object) method is equivalent to a call to the ReferenceEquals method.
  2. 两个参数的equals()是个静态工具方法,被有需要的人调用(比如operator override的实现就可以用它)。它的逻辑是先看reference equal, 不行再调用单个参数的equals。这是固定的逻辑,不会被改变。
  3. IEquatable<T>是类型具体的相等,和第一点不同的是不是object,而是具体类型。用途: The IEquatable<T> interface is used by generic collection objects such as Dictionary<TKey,TValue>List<T>, and LinkedList<T> when testing for equality in such methods as ContainsIndexOfLastIndexOf, and Remove. It should be implemented for any object that might be stored in a generic collection.
  4. GetHashCode()也是Object类的虚方法, 用于: A hash code is a numeric value that is used to insert and identify an object in a hash-based collection such as the Dictionary<TKey,TValue> class, the Hashtable class, or a type derived from the DictionaryBase class. The GetHashCode method provides this hash code for algorithms that need quick checks of object equality.

所以比较的实现主要看需要在那些地方比,这些都可以(有可能需要)实现。virtual equals(Ojbect类型的虚方法)和 operator override不和具体的泛型集合类相关,如果自己的代码用泛型集合类,没有直接使用它们,也可以不实现。