GMap.NET.WindowsForms/GMap.NET.ObjectModel/ObservableCollection.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace GMap.NET.ObjectModel
{
public delegate void NotifyCollectionChangedEventHandler(object sender, NotifyCollectionChangedEventArgs e);
public interface INotifyCollectionChanged
{
// Events
event NotifyCollectionChangedEventHandler CollectionChanged;
}
public interface INotifyPropertyChanged
{
// Events
event PropertyChangedEventHandler PropertyChanged;
}
public enum NotifyCollectionChangedAction
{
Add,
Remove,
Replace,
Move,
Reset
}
public class NotifyCollectionChangedEventArgs : EventArgs
{
// Fields
private NotifyCollectionChangedAction _action;
private IList _newItems;
private int _newStartingIndex;
private IList _oldItems;
private int _oldStartingIndex;
// Methods
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action)
{
this._newStartingIndex = -1;
this._oldStartingIndex = -1;
if(action != NotifyCollectionChangedAction.Reset)
{
throw new ArgumentException("WrongActionForCtor", "action");
}
this.InitializeAdd(action, null, -1);
}
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems)
{
this._newStartingIndex = -1;
this._oldStartingIndex = -1;
if(((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove)) && (action != NotifyCollectionChangedAction.Reset))
{
throw new ArgumentException("MustBeResetAddOrRemoveActionForCtor", "action");
}
后面还有 481 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
