C# 클래스 Thinktecture.Tools.Web.Services.CodeGeneration.AttributableCodeDomObject

상속: System.CodeDom.CodeTypeMember
파일 보기 프로젝트 열기: WSCF/WSCF

공개 메소드들

메소드 설명
AddAttribute ( CodeAttributeDeclaration attribDecl ) : bool

Adds a new attribute to a attributes collection or modify an existing attribute. It checks whether a given attribute exists and adds it if its not there. If it is there, then it will add the arguments available in the new attribute but not available in the existing attribute.

AttributableCodeDomObject ( CodeTypeMember extendedObject ) : System
FindAttribute ( string attributeName ) : CodeAttributeDeclaration

This method finds the attribute as specified by attribute parameter.

This method initially looks up an internal attribute cache. If the attribute is not found in the cache, it searches for it in the actual object extended by this instance. If the attribute is found, this method adds it to internal cache causing the faster access time in the subsequent requests.

FindAttributes ( string attributeName ) : IEnumerable

Finds all instances of the attribute with the specified name.

RemoveAttribute ( CodeAttributeDeclaration attribute ) : void

Removes the attribute from the custom attributes collection of the type.

비공개 메소드들

메소드 설명
SyncSourceAttributes ( CodeAttributeDeclaration source, CodeAttributeDeclaration destination ) : void

메소드 상세

AddAttribute() 공개 메소드

Adds a new attribute to a attributes collection or modify an existing attribute. It checks whether a given attribute exists and adds it if its not there. If it is there, then it will add the arguments available in the new attribute but not available in the existing attribute.
public AddAttribute ( CodeAttributeDeclaration attribDecl ) : bool
attribDecl System.CodeDom.CodeAttributeDeclaration
리턴 bool

AttributableCodeDomObject() 공개 메소드

public AttributableCodeDomObject ( CodeTypeMember extendedObject ) : System
extendedObject System.CodeDom.CodeTypeMember
리턴 System

FindAttribute() 공개 메소드

This method finds the attribute as specified by attribute parameter.
This method initially looks up an internal attribute cache. If the attribute is not found in the cache, it searches for it in the actual object extended by this instance. If the attribute is found, this method adds it to internal cache causing the faster access time in the subsequent requests.
public FindAttribute ( string attributeName ) : CodeAttributeDeclaration
attributeName string
리턴 System.CodeDom.CodeAttributeDeclaration

FindAttributes() 공개 메소드

Finds all instances of the attribute with the specified name.
public FindAttributes ( string attributeName ) : IEnumerable
attributeName string Name of the attribute.
리턴 IEnumerable

RemoveAttribute() 공개 메소드

Removes the attribute from the custom attributes collection of the type.
public RemoveAttribute ( CodeAttributeDeclaration attribute ) : void
attribute System.CodeDom.CodeAttributeDeclaration The attribute to remove.
리턴 void