Castle.MonoRail.Framework.Views.Aspx.Design.StandardTarget.CollectPropertyNames C# (CSharp) Method

CollectPropertyNames() protected method

Collects the property names.
protected CollectPropertyNames ( Type type ) : string[]
type System.Type The type.
return string[]
		protected virtual string[] CollectPropertyNames(Type type)
		{
			if (type == null) return new string[0];

			PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(type);

			string[] propertyDescNames = new string[properties.Count];

			for (int i = 0; i < properties.Count; ++i)
			{
				propertyDescNames[i] = properties[i].Name;
			}

			return propertyDescNames;
		}
	}