Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: int OrDefaultTo(int)

  • Declared in: RT.KitchenSink.Collections.RVariant

Declaration

public int OrDefaultTo(
    int defaultValue
)

Summary

Treating this node as a Value, returns the value converted to an int or the default value specified by defaultValue if the conversion is not possible. Also returns the default value if this node is not of a Value type.