/// <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> /// 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); }
/// <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); }
public void ExplicitInterfaceProperty() { IPropertyInterface domainObject = ClassWithExplicitInterfaceProperty.NewObject(); domainObject.Property = 5; Assert.That(domainObject.Property, Is.EqualTo(5)); }
/// <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); }
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; }
/// <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; }