Class TransactionItemConstructor
Item constructor
Inheritance
System.Object
TransactionItemConstructor
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: Simplic.ERP.Core
Assembly: Simplic.ERP.Core.dll
Syntax
public class TransactionItemConstructor
Properties
| Improve this Doc View SourceConstructor
Gets or sets the factory / constructor
Declaration
public Func<object> Constructor { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Object> |
Id
Gets or sets the type id
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Type
Gets or sets the type instance
Declaration
public Type Type { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceCreate<T>(String, Func<T>)
Declaration
public static TransactionItemConstructor Create<T>(string id, Func<T> ctor)
where T : TransactionItem
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
System.Func<T> | ctor |
Returns
Type | Description |
---|---|
TransactionItemConstructor |
Type Parameters
Name | Description |
---|---|
T |