Ejemplo n.º 1
0
        /// <summary>
        /// Output the value saved in the IPropertyInterface structure
        /// </summary>
        /// <param name="list">The list from the input</param>
        /// <returns>Certain value of each property</returns>
        public object OutputValue(IPropertyInterface list)
        {
            AttachMethod fid1  = (AttachMethod)list;
            uint         value = fid1.attachMethod;

            return(value);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Output the value saved in the IPropertyInterface structure
        /// </summary>
        /// <param name="list">The list from the input</param>
        /// <returns>Certain value of each property</returns>
        public object OutputValue(IPropertyInterface list)
        {
            FID   fid1  = (FID)list;
            ulong value = fid1.fid;

            return(value);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Output the value saved in the IPropertyInterface structure
        /// </summary>
        /// <param name="list">The list from the input</param>
        /// <returns>Certain value of each property</returns>
        public object OutputValue(IPropertyInterface list)
        {
            DisplayName displayname = (DisplayName)list;
            string      value       = displayname.displayName;

            return(value);
        }
Ejemplo n.º 4
0
        public void ExplicitInterfaceProperty()
        {
            IPropertyInterface domainObject = ClassWithExplicitInterfaceProperty.NewObject();

            domainObject.Property = 5;
            Assert.That(domainObject.Property, Is.EqualTo(5));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Output the value saved in the IPropertyInterface structure
        /// </summary>
        /// <param name="list">The list from the input</param>
        /// <returns>Certain value of each property</returns>
        public object OutputValue(IPropertyInterface list)
        {
            MessageID fid1  = (MessageID)list;
            ulong     value = fid1.messageId;

            return(value);
        }
Ejemplo n.º 6
0
        public void PropertyLambdaCanReadAPropertyNameFromALambda()
        {
            IPropertyInterface obj = null;
            var lambda             = PropertyLambda <IPropertyInterface> .Create(() => obj.GetSet);

            lambda.Getter.Name.ShouldBe("get_GetSet");
        }
 /// <summary>
 /// Output the value saved in the IPropertyInterface structure
 /// </summary>
 /// <param name="list">The list from the input</param>
 /// <returns>Certain value of each property</returns>
 public object OutputValue(IPropertyInterface list)
 {
     AttachMethod fid1 = (AttachMethod)list;
     uint value = fid1.attachMethod;
     return value;
 }
 /// <summary>
 /// Register a property's ID together with a structure
 /// </summary>
 /// <param name="propertyId">A property's ID</param>
 /// <param name="testClass">A interfaceBase structure</param>
 private static void RegisterForParses(int propertyId, IPropertyInterface testClass)
 {
     parses[propertyId] = testClass;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Output the value saved in the IPropertyInterface structure
 /// </summary>
 /// <param name="list">The list from the input</param>
 /// <returns>Certain value of each property</returns>
 public object OutputValue(IPropertyInterface list)
 {
     FID fid1 = (FID)list;
     ulong value = fid1.fid;
     return value;
 }