コード例 #1
0
        public vCardProperty GetExtendedProperty(string propertyName, string propertyNS)
        {
            PropertyRegistration reg = PropertyRegistrations.FirstOrDefault(pr => pr.PropertyName == propertyName && pr.PropertyNS == propertyNS);

            if (reg == null)
            {
                return(null);
            }
            return(reg.Property);
        }
コード例 #2
0
        public void PropertyRegistrationConstructor()
        {
            tlog.Debug(tag, $"PropertyRegistrationConstructor START");

            using (View view = new View())
            {
                TypeRegistration registration = new TypeRegistration(view.SwigCPtr.Handle, false);
                SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void   set = new SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void(View.getCPtr(view).Handle);
                SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value get = new SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value(View.getCPtr(view).Handle);

                var testingTarget = new PropertyRegistration(registration, "mytest", 10000001, PropertyType.Float, set, get);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <PropertyRegistration>(testingTarget, "Should return PropertyRegistration instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"PropertyRegistrationConstructor END (OK)");
        }
コード例 #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyRegistration obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }