Show / Hide Table of Contents

Class Variable

A Variable contains a name and it's value.

Inheritance
Object
Variable
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public sealed class Variable

Constructors

| Edit this page View Source

Variable()

Initialize a new instance of Variable class

Declaration
public Variable()
| Edit this page View Source

Variable(String)

Initialize the variable with Name, and Value = null

Declaration
public Variable(string Name)
Parameters
Type Name Description
String Name

the name of the variable

| Edit this page View Source

Variable(String, String)

Initialize the varialbe with Name and Value

Declaration
public Variable(string name, string value)
Parameters
Type Name Description
String name

Name of the variable

String value

Value of the variable

Properties

| Edit this page View Source

Name

Name of the variable

Declaration
public string Name { get; set; }
Property Value
Type Description
String
| Edit this page View Source

Value

Value of the variable

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

Methods

| Edit this page View Source

GetValue(IEnumerable<Variable>, String)

Get the Value of an variable from a list by its name

Declaration
public static string GetValue(IEnumerable<Variable> source, string name)
Parameters
Type Name Description
IEnumerable<Variable> source

The list of variable to be checked.

String name

The name of the variable where its value should be retrieved.

Returns
Type Description
String

The value of variable there its name is [name].

Exceptions
Type Condition
System.ArgumentNullException

source is null.

System.InvalidOperationException

The source sequence is empty.

| Edit this page View Source

ToString()

Returns the string representation of the current Variable

Declaration
public override string ToString()
Returns
Type Description
String

String representation of variable

Overrides
System.Object.ToString()
  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.