C# Класс ZeroInstall.Store.Model.Element

Наследование: TargetBase, IBindingContainer, IDependencyContainer, ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetCommand Command
ICloneable object
InheritFrom void
this Command

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

Метод Описание
Clone ( ) : Element

Creates a deep copy of this Element instance.

ContainsCommand ( string name ) : bool

Determines whether Commands contains a Command with a specific name.

GetHashCode ( ) : int
Normalize ( [ feedUri ) : void

Sets missing default values and handles legacy elements.

This method should be called to prepare a Feed for solver processing. Do not call it if you plan on serializing the feed again since it may loose some of its structure.

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

Метод Описание
CloneFromTo ( [ from, [ to ) : void

Copies all known values from one instance to another. Helper method for instance cloning.

Equals ( Element other ) : bool

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

Метод Описание
GetCommand ( [ name ) : Command
ICloneable ( ) : object
InheritFrom ( [ parent ) : void

Transfers attributes from another Element object to this one. Existing values are not replaced. Provides an inheritance-like relation.

this ( [ name ) : Command

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

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

Creates a deep copy of this Element instance.
public abstract Clone ( ) : Element
Результат Element

CloneFromTo() защищенный статический Метод

Copies all known values from one instance to another. Helper method for instance cloning.
protected static CloneFromTo ( [ from, [ to ) : void
from [
to [
Результат void

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

Determines whether Commands contains a Command with a specific name.
public ContainsCommand ( string name ) : bool
name string The to look for; for none.
Результат bool

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

protected Equals ( Element other ) : bool
other Element
Результат bool

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

public GetHashCode ( ) : int
Результат int

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

Sets missing default values and handles legacy elements.
This method should be called to prepare a Feed for solver processing. Do not call it if you plan on serializing the feed again since it may loose some of its structure.
public Normalize ( [ feedUri ) : void
feedUri [ The feed the data was originally loaded from.
Результат void