Class InterfaceExtensions
Inheritance
System.Object
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:System.Dynamic.ExpandoObject
Assembly:SilverDawn.SilverModel.UML.dll
Syntax
public static class InterfaceExtensions
Methods
AddProperty(IInterface, IProperty)
Add a property to the interface
Declaration
public static IProperty AddProperty(this IInterface iInterface, IProperty attribute)
Parameters
Type | Name | Description |
---|---|---|
IInterface | iInterface | The class to add the property too |
IProperty | attribute | The property to add |
Returns
Type | Description |
---|---|
IProperty |
AllProperties(IInterface)
Get all the properties for the interface including the inherited ones.
Declaration
public static IEnumerable<IProperty> AllProperties(this IInterface iInterface)
Parameters
Type | Name | Description |
---|---|---|
IInterface | iInterface |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProperty> |
CreateProperty(IInterface)
Create a blank property for the interface
Declaration
public static IProperty CreateProperty(this IInterface iInterface)
Parameters
Type | Name | Description |
---|---|---|
IInterface | iInterface | The class to add the new property too |
Returns
Type | Description |
---|---|
IProperty |
Properties(IInterface)
Gets the Properties for the interface
Declaration
public static IEnumerable<IProperty> Properties(this IInterface iInterface)
Parameters
Type | Name | Description |
---|---|---|
IInterface | iInterface |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProperty> |