Class UsingNamespace
Represents a request for C# expressions to be evaluated in the context of the specified namespace,
as if it were specified with a using
keyword.
Inheritance
System.Object
UsingNamespace
Implements
System.IEquatable<UsingNamespace>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions.CSharpExpressions
Assembly: ZptSharp.CSharpExpressions.dll
Syntax
public sealed class UsingNamespace : IEquatable<UsingNamespace>
Constructors
| Improve this Doc View SourceUsingNamespace(String)
Initializes a new instance of UsingNamespace.
Declaration
public UsingNamespace(string namespace)
Parameters
Type | Name | Description |
---|---|---|
System.String | namespace | The namespace. |
Properties
| Improve this Doc View SourceNamespace
Gets the namespace to include.
Declaration
public string Namespace { get; }
Property Value
Type | Description |
---|---|
System.String | The namespace |
Methods
| Improve this Doc View SourceEquals(Object)
Gets a value which indicates if the current instance is equal to the specified System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Equals(UsingNamespace)
Gets a value which indicates if the current instance is equal to the specified UsingNamespace.
Declaration
public bool Equals(UsingNamespace other)
Parameters
Type | Name | Description |
---|---|---|
UsingNamespace | other | A namespace. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Gets a hash code for the current instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code. |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>