Struct Dir
Represents a direction.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct Dir
Constructors
Dir(Boolean, Boolean)
Creates a new direction.
Declaration
public Dir(bool f, bool b)
Parameters
System.Boolean
f
|
System.Boolean
b
|
Dir(Byte)
Creates a new direction from it's raw value.
Declaration
public Dir(byte val)
Parameters
System.Byte
val
|
Fields
_val
Declaration
public byte _val
Field Value
System.Byte
|
Properties
B
Returns the bacward flag.
Declaration
public bool B { get; set; }
Property Value
System.Boolean
|
Backward
Retuns a backward direction struct.
Declaration
public static Dir Backward { get; }
Property Value
Dir
|
Bi
Retuns a bidirectional direction struct.
Declaration
public static Dir Bi { get; }
Property Value
Dir
|
F
Returns the forward flag.
Declaration
public bool F { get; set; }
Property Value
System.Boolean
|
Forward
Retuns a forward direction struct.
Declaration
public static Dir Forward { get; }
Property Value
Dir
|
Methods
AsNullableBool()
Returns the directional information as a nullable bool.
Declaration
public bool ? AsNullableBool()
Returns
System.Nullable<System.Boolean>
|
Clone()
Combine(Dir, Dir)
Combines two directions leaving only the possible directions flags.
Declaration
public static Dir Combine(Dir dir1, Dir dir2)
Parameters
Dir
dir1
|
Dir
dir2
|
Returns
Dir
|
FromFactor(Factor, Boolean)
Returns a direction from a given factor.
Declaration
public static Dir FromFactor(Factor factor, bool inverted)
Parameters
Factor
factor
|
System.Boolean
inverted
|
Returns
Dir
|
Reverse()
Reverses this direction.
Declaration
public void Reverse()
ToString()
Returns a description of this struct.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
System.ValueType.ToString()