mirror of https://github.com/icsharpcode/ILSpy.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							55 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							55 lines
						
					
					
						
							1.1 KiB
						
					
					
				// Copyright (c) Cristian Civera (cristian@aspitalia.com) | 
						|
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt) | 
						|
 | 
						|
 | 
						|
namespace Ricciolo.StylesExplorer.MarkupReflection | 
						|
{ | 
						|
	internal class PropertyDeclaration | 
						|
	{ | 
						|
		private TypeDeclaration declaringType; | 
						|
		private string name; | 
						|
 | 
						|
		// Methods | 
						|
		public PropertyDeclaration(string name) | 
						|
		{ | 
						|
			this.name = name; | 
						|
			this.declaringType = null; | 
						|
		} | 
						|
 | 
						|
		public PropertyDeclaration(string name, TypeDeclaration declaringType) | 
						|
		{ | 
						|
			this.name = name; | 
						|
			this.declaringType = declaringType; | 
						|
		} | 
						|
 | 
						|
		public override string ToString() | 
						|
		{ | 
						|
			if (((this.DeclaringType != null) && (this.DeclaringType.Name == "XmlNamespace")) && ((this.DeclaringType.Namespace == null) && (this.DeclaringType.Assembly == null))) | 
						|
			{ | 
						|
				if ((this.Name == null) || (this.Name.Length == 0)) | 
						|
				{ | 
						|
					return "xmlns"; | 
						|
				} | 
						|
				return ("xmlns:" + this.Name); | 
						|
			} | 
						|
			return this.Name; | 
						|
		} | 
						|
 | 
						|
		// Properties | 
						|
		public TypeDeclaration DeclaringType | 
						|
		{ | 
						|
			get | 
						|
			{ | 
						|
				return this.declaringType; | 
						|
			} | 
						|
		} | 
						|
 | 
						|
		public string Name | 
						|
		{ | 
						|
			get | 
						|
			{ | 
						|
				return this.name; | 
						|
			} | 
						|
		} | 
						|
	} | 
						|
}
 | 
						|
 |