CorCompare.TypeData.GetProperties C# (CSharp) Méthode

GetProperties() static private méthode

static private GetProperties ( Mono.Cecil.TypeDefinition type ) : Mono.Cecil.PropertyDefinition[]
type Mono.Cecil.TypeDefinition
Résultat Mono.Cecil.PropertyDefinition[]
		internal static PropertyDefinition [] GetProperties (TypeDefinition type) {
			ArrayList list = new ArrayList ();

			var properties = type.Properties;//type.GetProperties (flags);
			foreach (PropertyDefinition property in properties) {
				MethodDefinition getMethod = property.GetMethod;
				MethodDefinition setMethod = property.SetMethod;

				bool hasGetter = (getMethod != null) && MustDocumentMethod (getMethod);
				bool hasSetter = (setMethod != null) && MustDocumentMethod (setMethod);

				// if neither the getter or setter should be documented, then
				// skip the property
				if (hasGetter || hasSetter) {
					list.Add (property);
				}
			}

			return (PropertyDefinition []) list.ToArray (typeof (PropertyDefinition));
		}