Class Condition
Represents a conditional expression, specified in one or more source code languages.
Inherited Members
Algenta.Colectica.Model.NotificationObject.RaisePropertyChanged<T>(Expression<>)
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class Condition : NotificationObject
Constructors
Condition()
Initializes a new instance of the Condition class.
Declaration
public Condition()
Condition(SourceCode)
Initializes a new instance of the Condition class.
Declaration
public Condition(SourceCode sourceCode)
Parameters
Type | Name | Description |
---|---|---|
SourceCode | sourceCode |
Properties
CurrentSourceCode
Gets the source code for the language specified in SourceCode.CurrentLanguage
.
Declaration
public SourceCode CurrentSourceCode { get; }
Property Value
Type | Description |
---|---|
SourceCode |
Description
Gets the description.
Declaration
public virtual MultilingualString Description { get; }
Property Value
Type | Description |
---|---|
MultilingualString |
SourceCodeExpressions
The expression in the form of language-specific source code.
Declaration
public SourceCodeCollection SourceCodeExpressions { get; }
Property Value
Type | Description |
---|---|
SourceCodeCollection |
Remarks
SourceCodeExpressions is used when the LINQ Expression is not available. Presumably this is only when importing from existing code.
Methods
GetSourceCodeForLanguage(String)
Gets the source code for the specified language.
Declaration
public SourceCode GetSourceCodeForLanguage(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The source code language. |
Returns
Type | Description |
---|---|
SourceCode | The source code for the language. |
SetSourceCodeForLanguage(String, String)
Sets the source code for the specified language.
Declaration
public void SetSourceCodeForLanguage(string language, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The source code language. |
System.String | value | The source code. |
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |