Class ModelCollection
Inheritance
ModelCollection
Assembly: NMF.Models.dll
Syntax
public class ModelCollection : IDictionary<Uri, Model>, ICollection<KeyValuePair<Uri, Model>>, IEnumerable<KeyValuePair<Uri, Model>>, IEnumerable
Constructors
|
Edit this page
View Source
ModelCollection(IModelRepository)
Declaration
public ModelCollection(IModelRepository repo)
Parameters
Properties
|
Edit this page
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Edit this page
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
|
Edit this page
View Source
this[Uri]
Declaration
public Model this[Uri key] { get; set; }
Parameters
Type |
Name |
Description |
Uri |
key |
|
Property Value
|
Edit this page
View Source
Keys
Declaration
public ICollection<Uri> Keys { get; }
Property Value
|
Edit this page
View Source
Repository
Declaration
public IModelRepository Repository { get; }
Property Value
|
Edit this page
View Source
Values
Declaration
public ICollection<Model> Values { get; }
Property Value
Methods
|
Edit this page
View Source
Add(KeyValuePair<Uri, Model>)
Declaration
public void Add(KeyValuePair<Uri, Model> item)
Parameters
|
Edit this page
View Source
Add(Uri, Model)
Declaration
public virtual void Add(Uri key, Model value)
Parameters
Type |
Name |
Description |
Uri |
key |
|
Model |
value |
|
|
Edit this page
View Source
Clear()
Declaration
|
Edit this page
View Source
Contains(KeyValuePair<Uri, Model>)
Declaration
public bool Contains(KeyValuePair<Uri, Model> item)
Parameters
Returns
|
Edit this page
View Source
ContainsKey(Uri)
Declaration
public bool ContainsKey(Uri key)
Parameters
Type |
Name |
Description |
Uri |
key |
|
Returns
|
Edit this page
View Source
CopyTo(KeyValuePair<Uri, Model>[], int)
Declaration
public void CopyTo(KeyValuePair<Uri, Model>[] array, int arrayIndex)
Parameters
|
Edit this page
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<Uri, Model>> GetEnumerator()
Returns
|
Edit this page
View Source
Remove(KeyValuePair<Uri, Model>)
Declaration
public bool Remove(KeyValuePair<Uri, Model> item)
Parameters
Returns
|
Edit this page
View Source
Remove(Uri)
Declaration
public bool Remove(Uri key)
Parameters
Type |
Name |
Description |
Uri |
key |
|
Returns
|
Edit this page
View Source
TryGetValue(Uri, out Model)
Declaration
public bool TryGetValue(Uri key, out Model value)
Parameters
Type |
Name |
Description |
Uri |
key |
|
Model |
value |
|
Returns
Implements