Show / Hide Table of Contents

Class SourceCode

Represents source code for a particular language.

Inheritance
object
NotificationObject
SourceCode
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.ToString()
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 SourceCode : NotificationObject, INotifyPropertyChanged

Constructors

SourceCode()

Initializes a new instance of the SourceCode class.

Declaration
public SourceCode()

SourceCode(NeutralAssignment)

Initializes a new instance of the SourceCode class.

Declaration
public SourceCode(NeutralAssignment assignment)
Parameters
Type Name Description
NeutralAssignment assignment

Language neutral assignment expression

SourceCode(NeutralConditionalLogic)

Initializes a new instance of the SourceCode class.

Declaration
public SourceCode(NeutralConditionalLogic condition)
Parameters
Type Name Description
NeutralConditionalLogic condition

Language neutral expression

SourceCode(string, string)

Initializes a new instance of the SourceCode class.

Declaration
public SourceCode(string language, string code)
Parameters
Type Name Description
string language

The language of the source code.

string code

The source code.

Fields

Blaise

Gets a string that represents the Blaise language.

Declaration
public static string Blaise
Field Value
Type Description
string

Neutral

Gets a string that represents the Neutral Expression language.

Declaration
public static string Neutral
Field Value
Type Description
string

NeutralAssignment

Gets a string that represents the Neutral Assignment language.

Declaration
public static string NeutralAssignment
Field Value
Type Description
string

Pseudocode

Gets a string that represents the Pseudocode language.

Declaration
public static string Pseudocode
Field Value
Type Description
string

Properties

Bindings

A collection of bindings that maps parameters from the QuestionItem to ResponseDomains.

Declaration
public ObservableCollection<Binding> Bindings { get; }
Property Value
Type Description
ObservableCollection<Binding>

Code

Gets or sets the text of the source code.

Declaration
public string Code { get; set; }
Property Value
Type Description
string

CurrentLanguage

Gets or sets the current language, making it easier to retrieve source code for the language from a SourceCodeCollection.

Declaration
public static string CurrentLanguage { get; set; }
Property Value
Type Description
string

The current language.

InParameters

A collection of parameters provided as input to the question.

Declaration
public ObservableCollection<Parameter> InParameters { get; }
Property Value
Type Description
ObservableCollection<Parameter>

Language

Gets or sets the language of the source code.

Declaration
public string Language { get; set; }
Property Value
Type Description
string

The language.

OutParameters

A collection of parameters provided as output by the question.

Declaration
public ObservableCollection<Parameter> OutParameters { get; }
Property Value
Type Description
ObservableCollection<Parameter>

Methods

AsNeutralAssignment()

Language neutral assignment

Declaration
public NeutralAssignment AsNeutralAssignment()
Returns
Type Description
NeutralAssignment
Exceptions
Type Condition
Exception

Thrown when not a neutral assignment representation

AsNeutralConditionalLogic()

Language neutral expression

Declaration
public NeutralConditionalLogic AsNeutralConditionalLogic()
Returns
Type Description
NeutralConditionalLogic
Exceptions
Type Condition
Exception

Thrown when not a neutral representation

GetSynopsis()

A human readable synopsis of the code

Declaration
public string GetSynopsis()
Returns
Type Description
string

WatchProperties()

Watch for property changed events

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

Events

CurrentLanguageChanged

Occurs when the current language changed.

Declaration
public static event EventHandler CurrentLanguageChanged
Event Type
Type Description
EventHandler

Implements

INotifyPropertyChanged
In this article
Back to top Generated by DocFX