C# Класс clojure.lang.Symbol

Наследование: AFn, IObj, Named, IComparable, ISerializable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_hash int
_name string
_ns string

Открытые методы

Метод Описание
CompareTo ( object obj ) : int

Compare this symbol to another object.

Equals ( object obj ) : bool

Determine if an object is equal to this symbol.

Uses value semantics, value determined by namespace name and symbol name.

GetHashCode ( ) : int

Get the hash code.

ToString ( ) : string

Return a string representing the symbol.

getName ( ) : string

Gets the symbol name.

getNamespace ( ) : string

Get the namespace name.

meta ( ) : IPersistentMap
operator ( ) : bool
withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Защищенные методы

Метод Описание
Symbol ( SerializationInfo info, StreamingContext context ) : System

Construct a Symbol during deserialization.

Приватные методы

Метод Описание
ComputeHashCode ( ) : int

Compute the hash code for the symbol.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Symbol ( IPersistentMap meta, string ns_interned, string name_interned ) : System

Construct a symbol from interned namespace name and symbol name, with given metadata.

Symbol ( string ns_interned, string name_interned ) : System

Construct a symbol from interned namespace name and symbol name.

create ( String nsname ) : Symbol
create ( String ns, String name ) : Symbol
intern ( string nsname ) : Symbol
intern ( string ns, string name ) : Symbol
invoke ( Object obj ) : object
invoke ( Object obj, Object notFound ) : object

Описание методов

CompareTo() публичный Метод

Compare this symbol to another object.
public CompareTo ( object obj ) : int
obj object The object to compare to.
Результат int

Equals() публичный Метод

Determine if an object is equal to this symbol.
Uses value semantics, value determined by namespace name and symbol name.
public Equals ( object obj ) : bool
obj object The object to compare to.
Результат bool

GetHashCode() публичный Метод

Get the hash code.
public GetHashCode ( ) : int
Результат int

Symbol() защищенный Метод

Construct a Symbol during deserialization.
protected Symbol ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Результат System

ToString() публичный Метод

Return a string representing the symbol.
public ToString ( ) : string
Результат string

getName() публичный Метод

Gets the symbol name.
public getName ( ) : string
Результат string

getNamespace() публичный Метод

Get the namespace name.
public getNamespace ( ) : string
Результат string

meta() публичный Метод

public meta ( ) : IPersistentMap
Результат IPersistentMap

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

withMeta() публичный Метод

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
Результат IObj

Описание свойств

_hash защищенное свойство

The cached hashcode.
protected int _hash
Результат int

_name защищенное свойство

The name of the symbol.
This string must be interned.
protected string _name
Результат string

_ns защищенное свойство

The name of the namespace for this symbol (if namespace-qualified).
This string must be interned.
protected string _ns
Результат string