C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Attributes.ServerHasDefaultEmptyObject Class Reference

Indicates that the property, if left null, will be given a default value by the server corresponding to an empty or uninitialized object of the specified type. More...

Public Member Functions

 ServerHasDefaultEmptyObject (Type objectType)
 Indicates that the property, if left null, will be given a default value by the server corresponding to an empty or uninitialized object of the specified type.
 
virtual object GetDefaultValue (object owner)
 Returns the expected default value for the property based on the owner.
 
virtual bool HasDefaultValue (object owner)
 Returns whether there exists an expected default value for the property based on the specified owner.
 

Properties

virtual object DefaultValue [get]
 Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.
 
virtual bool HasKnownDefault [get]
 Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.
 

Detailed Description

Indicates that the property, if left null, will be given a default value by the server corresponding to an empty or uninitialized object of the specified type.

Definition at line 8 of file ServerHasDefaultEmptyObject.cs.

Inheritance diagram for AnalyzeRe.Attributes.ServerHasDefaultEmptyObject:
AnalyzeRe.Attributes.ServerHasDefault

Constructor & Destructor Documentation

◆ ServerHasDefaultEmptyObject()

AnalyzeRe.Attributes.ServerHasDefaultEmptyObject.ServerHasDefaultEmptyObject ( Type  objectType)
inline

Indicates that the property, if left null, will be given a default value by the server corresponding to an empty or uninitialized object of the specified type.

Parameters
objectTypeThe property type whose empty constructor corresponds to the default server value when instantiated.

Definition at line 15 of file ServerHasDefaultEmptyObject.cs.

Member Function Documentation

◆ GetDefaultValue()

virtual object AnalyzeRe.Attributes.ServerHasDefault.GetDefaultValue ( object  owner)
inlinevirtualinherited

Returns the expected default value for the property based on the owner.

Parameters
ownerThe object from which a default value will be derived.
Returns
The expected default value for the specified object.

Reimplemented in AnalyzeRe.APIResourceView.TargetCurrencyDefault, and AnalyzeRe.LossSet.LossTypeDefault.

Definition at line 64 of file ServerHasDefault.cs.

◆ HasDefaultValue()

virtual bool AnalyzeRe.Attributes.ServerHasDefault.HasDefaultValue ( object  owner)
inlinevirtualinherited

Returns whether there exists an expected default value for the property based on the specified owner.

Parameters
ownerThe object from which a default value will be derived.
Returns
False if there is no known default value for the supplied object.

Definition at line 56 of file ServerHasDefault.cs.

Property Documentation

◆ DefaultValue

virtual object AnalyzeRe.Attributes.ServerHasDefault.DefaultValue
getinherited

Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.

Definition at line 19 of file ServerHasDefault.cs.

◆ HasKnownDefault

virtual bool AnalyzeRe.Attributes.ServerHasDefault.HasKnownDefault
getinherited

Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.

Definition at line 15 of file ServerHasDefault.cs.


The documentation for this class was generated from the following file: