Server.Gumps.PropertiesGump.GetCPA C# (CSharp) Méthode

GetCPA() private static méthode

private static GetCPA ( PropertyInfo prop ) : Server.CommandPropertyAttribute
prop System.Reflection.PropertyInfo
Résultat Server.CommandPropertyAttribute
		private static CPA GetCPA( PropertyInfo prop )
		{
			object[] attrs = prop.GetCustomAttributes( typeofCPA, false );

			if ( attrs.Length > 0 )
				return attrs[0] as CPA;
			else
				return null;
		}