Show / Hide Table of Contents

Class Condition

Represents a conditional expression, specified in one or more source code languages.

Inheritance
object
NotificationObject
Condition
Implements
INotifyPropertyChanged
Inherited Members
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class Condition : NotificationObject, INotifyPropertyChanged

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
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
string language

The source code language.

string value

The source code.

ToString()

Returns a string that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
object.ToString()

WatchProperties()

Watch for property changed events

Declaration
protected override void WatchProperties()
Overrides
NotificationObject.WatchProperties()

Implements

INotifyPropertyChanged
In this article
Back to top Generated by DocFX