C# Class Monobjc.Tools.Generator.Utilities.AvailabilityHelper

Datei anzeigen Open project: Monobjc/monobjc-tools

Public Methods

Method Description
AddMention ( BaseEntity baseEntity, String line ) : bool

Adds the availability mention.

GetDefine ( String availability ) : String

Gets the define string for the given version of OS.

GetVersion ( String availability, System.Version defaultVersion ) : System.Version

Gets the define string for the given version of OS.

Private Methods

Method Description
CreateAvailabilityStrings ( ) : string>.IDictionary

Set the define to use for each version of OS.

CreateAvailabilityVersions ( ) : Version>.IDictionary

Set the define to use for each version of OS.

Method Details

AddMention() public static method

Adds the availability mention.
public static AddMention ( BaseEntity baseEntity, String line ) : bool
baseEntity BaseEntity
line String
return bool

GetDefine() public static method

Gets the define string for the given version of OS.
public static GetDefine ( String availability ) : String
availability String
return String

GetVersion() public static method

Gets the define string for the given version of OS.
public static GetVersion ( String availability, System.Version defaultVersion ) : System.Version
availability String
defaultVersion System.Version
return System.Version