Mono.Types.GetContentPropertyName C# (CSharp) Method

GetContentPropertyName() private method

private GetContentPropertyName ( Type t ) : string
t System.Type
return string
		private string GetContentPropertyName (Type t)
		{
			object [] o = t.GetCustomAttributes (typeof (ContentPropertyAttribute), true);
			if (o.Length == 0)
				return null;
			ContentPropertyAttribute cpa = (ContentPropertyAttribute ) o [0];

			return cpa.Name;
		}
	}