Show / Hide Table of Contents

Class VariableExtensions

Helper methods to access information from a DDI Variable.

Inheritance
System.Object
VariableExtensions
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public static class VariableExtensions : object

Methods

GatherAllCodes(Variable)

Gathers codes used in a variable, from the CodeRepresentation and the defined missing values.

Declaration
public static List<Code> GatherAllCodes(this Variable variable)
Parameters
Type Name Description
Variable variable
Returns
Type Description
List<Code>

GetAllDefinedMissingValues(Variable)

Declaration
public static List<string> GetAllDefinedMissingValues(this Variable variable)
Parameters
Type Name Description
Variable variable
Returns
Type Description
List<System.String>

GetDefinedMissingDoubleValues(Variable)

Gets a list of missing numeric values defined for the variable.

Declaration
public static List<double> GetDefinedMissingDoubleValues(this Variable variable)
Parameters
Type Name Description
Variable variable
Returns
Type Description
List<System.Double>

GetDefinedMissingStringValues(Variable)

Gets a list of missing string values defined for the variable.

Declaration
public static List<string> GetDefinedMissingStringValues(this Variable variable)
Parameters
Type Name Description
Variable variable
Returns
Type Description
List<System.String>

GetLabelForCategoryValue(String, IEnumerable<Code>)

Declaration
public static string GetLabelForCategoryValue(string value, IEnumerable<Code> codes)
Parameters
Type Name Description
System.String value
IEnumerable<Code> codes
Returns
Type Description
System.String

GetNumericFormatCode(Variable)

Declaration
public static string GetNumericFormatCode(this Variable variable)
Parameters
Type Name Description
Variable variable
Returns
Type Description
System.String

ValueIsInMissing(List<String>, String)

Declaration
public static bool ValueIsInMissing(List<string> missingValues, string value)
Parameters
Type Name Description
List<System.String> missingValues
System.String value
Returns
Type Description
System.Boolean
Back to top Copyright © 2009-2018 Colectica