public PropertiesBookPageData Clone() { var result = new PropertiesBookPageData { AuthorId = AuthorId, AuthorName = AuthorName, AuthorAccount = AuthorAccount, IgnoreAuthor = IgnoreAuthor, PageText = PageText, }; return(result); }
public static void AddPage(this IList <PropertiesBookPageData> value, PropertiesBookPageData page, out int index, ReaderWriterLockSlim rwLock) { rwLock.EnterWriteLock(); try { value.Add(page); index = value.Count; } finally { rwLock.ExitWriteLock(); } }