Ejemplo n.º 1
0
 /// <summary>
 /// Initializes new instance of RuntimeProperty struct instance with specified protocol and property name.
 /// </summary>
 /// <param name="protocol">Protocol to inspect.</param>
 /// <param name="name">Property name to find.</param>
 /// <param name="isRequiredProperty">A value that indicates whether <paramref name="name"/> is a required property.</param>
 /// <param name="isInstanceProperty">A value that indicates whether <paramref name="name"/> is a instance property.</param>
 public RuntimeProperty(RuntimeProtocol protocol, string name, bool isRequiredProperty, bool isInstanceProperty)
 {
     _handle = Runtime.NativeMethods.protocol_getProperty(protocol, name, isRequiredProperty, isInstanceProperty);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks that class adopted specified protocol.
 /// </summary>
 /// <param name="protocol">Protocol to check.</param>
 /// <returns>True if class adopted specified protocol, False otherwise.</returns>
 public bool IsConformsTo(RuntimeProtocol protocol)
 {
     return(Runtime.NativeMethods.class_conformsToProtocol(this, protocol));
 }