Class SourceCodeCollection
Represents a collection of SourceCode objects.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class SourceCodeCollection : ObservableCollection<SourceCode>, IList<SourceCode>, ICollection<SourceCode>, IList, ICollection, IReadOnlyList<SourceCode>, IReadOnlyCollection<SourceCode>, IEnumerable<SourceCode>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Properties
CurrentSourceCode
Gets the current source code for the language defined by SourceCode.CurrentLanguage.
Declaration
public SourceCode CurrentSourceCode { get; }
Property Value
| Type | Description |
|---|---|
| SourceCode |
Methods
GetSourceCodeForLanguage(string)
Gets the source code for the specified language.
Declaration
public SourceCode GetSourceCodeForLanguage(string language)
Parameters
| Type | Name | Description |
|---|---|---|
| string | language | The language. |
Returns
| Type | Description |
|---|---|
| SourceCode |
HasLanguage(string)
Determines whether source code is defined for the specified language.
Declaration
public bool HasLanguage(string language)
Parameters
| Type | Name | Description |
|---|---|---|
| string | language | The language. |
Returns
| Type | Description |
|---|---|
| bool |
|
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 language. |
| string | value | The value. |