Class CommonReturnTypeDto
This class is to declare the common method return type used mostly in helper classes. To generalize the return data we have added this class.
Inheritance
System.Object
CommonReturnTypeDto
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite
Assembly: VEDriversLite.dll
Syntax
public class CommonReturnTypeDto
Properties
| Improve this Doc View SourceSuccess
This property tells whether the return type is a success or a failure
Declaration
public bool Success { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
This property holds the actual value
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceGetNew<T>(Boolean, T)
Get empty object with specified type of the object in result
Declaration
public static CommonReturnTypeDto GetNew<T>(bool success = false, T value = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | success | indicate success of some process which returned this object |
T | value | not specified type. in case of no parameters it returns default state of T |
Returns
Type | Description |
---|---|
CommonReturnTypeDto |
Type Parameters
Name | Description |
---|---|
T | Define type of return object |