CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Serialization/MockReadOnlyList.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="MockReadOnlyList.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Net;
10using System.Windows;
11#if !__ANDROID__
12using System.Windows.Controls;
13using System.Windows.Documents;
14using System.Windows.Ink;
15using System.Windows.Input;
16using System.Windows.Media;
17using System.Windows.Media.Animation;
18using System.Windows.Shapes;
19#endif
20using Csla;
22
24{
26 public class MockReadOnlyList : ReadOnlyBindingListBase<MockReadOnlyList, MockReadOnly>
27 {
28 public MockReadOnlyList() { }
29
30 public MockReadOnlyList(params MockReadOnly[] items)
31 {
32 IsReadOnly = false;
33 AddRange(items);
34 IsReadOnly = true;
35 }
36 }
37}
This is the base class from which readonly collections of readonly objects should be derived.
@ Serializable
Prevents updating or inserting until the transaction is complete.