/// <summary> /// To the network share. /// </summary> /// <param name="share">The share.</param> /// <returns>NetworkShare.</returns> private NetworkShare ToNetworkShare(Share share) { return new NetworkShare { Name = share.NetName, Path = share.Path, Remark = share.Remark, Server = share.Server, ShareType = ToNetworkShareType(share.ShareType) }; }
/// <summary> /// Copy this collection to an array /// </summary> /// <param name="array"></param> /// <param name="index"></param> public void CopyTo(Share[] array, int index) { InnerList.CopyTo(array, index); }
protected void Add(Share share) { InnerList.Add(share); }