Inheritance diagram for HouseOver.THARM.Search.EnumCheck:


Public Member Functions | |
| EnumCheck (string fieldName, string humanReadableName, bool fieldRequired, Type fieldType) | |
| Constructs an EnumCheck instance and fills out the information into the properties provided by the Check abstract class.   | |
| override bool | Verify (object obj) | 
| Checks wether the object is a valid instance of the FieldType type (as in, both correct type, and not false).   | |
| EnumCheck (string fieldName, string humanReadableName, bool fieldRequired, Type fieldType) | |
| Constructs an EnumCheck instance and fills out the information into the properties provided by the Check abstract class.   | |
| override bool | Verify (object obj) | 
| Checks wether the object is a valid instance of the FieldType type (as in, both correct type, and not false).   | |
Properties | |
| Enum | Value [get, set] | 
| Gets and sets the enum.   | |
Private Attributes | |
| Enum | value | 
| The enum to check.   | |
Definition at line 12 of file EnumCheck.cs.
| HouseOver.THARM.Search.EnumCheck.EnumCheck | ( | string | fieldName, | |
| string | humanReadableName, | |||
| bool | fieldRequired, | |||
| Type | fieldType | |||
| ) | 
Constructs an EnumCheck instance and fills out the information into the properties provided by the Check abstract class.
| fieldName | The name of the field | |
| humanReadableName | The human readable name of the field | |
| fieldRequired | Wether or not the field is required | |
| fieldType | The type of the field | 
Definition at line 31 of file EnumCheck.cs.
00031 : base(fieldName, humanReadableName, fieldRequired, fieldType) 00032 { 00033 }
| HouseOver.THARM.Search.EnumCheck.EnumCheck | ( | string | fieldName, | |
| string | humanReadableName, | |||
| bool | fieldRequired, | |||
| Type | fieldType | |||
| ) | 
Constructs an EnumCheck instance and fills out the information into the properties provided by the Check abstract class.
| fieldName | The name of the field | |
| humanReadableName | The human readable name of the field | |
| fieldRequired | Wether or not the field is required | |
| fieldType | The type of the field | 
Definition at line 31 of file EnumCheck.cs.
00031 : base(fieldName, humanReadableName, fieldRequired, fieldType) 00032 { 00033 }
| override bool HouseOver.THARM.Search.EnumCheck.Verify | ( | object | obj | ) |  [virtual] | 
        
Checks wether the object is a valid instance of the FieldType type (as in, both correct type, and not false).
| obj | The object to check | 
Implements HouseOver.THARM.Search.Check.
Definition at line 40 of file EnumCheck.cs.
00041 { 00042 if (!fieldRequired) 00043 return true; 00044 00045 if (!FieldType.IsInstanceOfType(obj)) 00046 return false; 00047 00048 Enum e = obj as Enum; 00049 if (e == null) 00050 return false; 00051 00052 return e.Equals(value); 00053 }
| override bool HouseOver.THARM.Search.EnumCheck.Verify | ( | object | obj | ) |  [virtual] | 
        
Checks wether the object is a valid instance of the FieldType type (as in, both correct type, and not false).
| obj | The object to check | 
Implements HouseOver.THARM.Search.Check.
Definition at line 40 of file EnumCheck.cs.
00041 { 00042 if (!fieldRequired) 00043 return true; 00044 00045 if (!FieldType.IsInstanceOfType(obj)) 00046 return false; 00047 00048 Enum e = obj as Enum; 00049 if (e == null) 00050 return false; 00051 00052 return e.Equals(value); 00053 }
Enum HouseOver::THARM::Search.EnumCheck::value [private]           | 
        
Enum HouseOver::THARM::Search.EnumCheck::Value [get, set]           | 
        
Gets and sets the enum.
Definition at line 19 of file EnumCheck.cs.
Referenced by HouseOver.THARM.RealtyManager.SetEnumCheck(), and HouseOver.THARM.RealtyManager.ShowProfileDetails().
 1.5.1-p1