如何转换IEnumerable为ObservableCollection?
我想问为什么我们在扩展方法(C#语言)中的参数之前使用"this"关键字...........喜欢这个函数:
public static int ToInt(this string number)
{
return Int32.Parse(number);
}
Run Code Online (Sandbox Code Playgroud)
我知道我们必须使用它,但我不知道为什么.
c# ×3