Show / Hide Table of Contents

Class PropertyGroups

Represents a dictionary of PropertyGroup objects.

Inheritance
System.Object
PropertyGroups
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: iPropertyGroups
Assembly: iPropertyGroups.dll
Syntax
[Serializable]
public class PropertyGroups

Properties

| Improve this Doc View Source

Groups

Main dictionary object that holds the PropertyGroup objects.

Declaration
public Dictionary<string, PropertyGroup> Groups { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, PropertyGroup>
| Improve this Doc View Source

Item[String]

Returns a Dictionary value for the provided key.

Declaration
public PropertyGroup this[string key] { get; set; }
Parameters
Type Name Description
System.String key

Name of the PropertyGroup

Property Value
Type Description
PropertyGroup

PropertyGroup object

Methods

| Improve this Doc View Source

Add(String, PropertyGroup)

Adds the specified key and value to the collection.

Declaration
public void Add(string item, PropertyGroup props)
Parameters
Type Name Description
System.String item

Name of the PropertyGroup

PropertyGroup props

The PropertyGroup object

| Improve this Doc View Source

Count()

Gets the number of key/value pairs in the PropertyGroups<string, PropertyGroup> object.

Declaration
public long Count()
Returns
Type Description
System.Int64

the number of key/value pairs as long.

| Improve this Doc View Source

LoadJson(String)

A static method to load a json file into a new PropertyGroups<string, PropertyGroup> object.

Declaration
public static PropertyGroups LoadJson(string filePath)
Parameters
Type Name Description
System.String filePath

The file path of the json file.

Returns
Type Description
PropertyGroups

PropertyGroups<string, PropertyGroup> if successful; otherwise returns null.

| Improve this Doc View Source

Remove(String)

Removes the specified value with the specified key from the PropertyGroups<string, PropertyGroup> dictionary.

Declaration
public bool Remove(string key)
Parameters
Type Name Description
System.String key

Name of PropertyGroup

Returns
Type Description
System.Boolean

true if the element is successfully found and removed; otherwise, false. This method returns false if the key is not found in the PropertyGroups<string, PropertyGroup>

| Improve this Doc View Source

SaveJson(String)

Saves the PropertyGroups<string, PropertyGroup> object to a json file.

Declaration
public void SaveJson(string filePath)
Parameters
Type Name Description
System.String filePath

The file path to save the json file.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX