public LayerItem( XElement xml ) { string propertiesTypeAsText = xml.CertainAttribute( @"ClrTypeOfProperties" ).Value ; Type typeOfProperties = Type.GetType( propertiesTypeAsText ) ; string justTheName = typeOfProperties.Name ; _properties = (ItemProperties)xml.Element( justTheName ).DeserializedAs( typeOfProperties ) ; }
void copyPropertiesFromOldToNew(Item old, ItemProperties @new) { convertCustomProperties( old.CustomProperties, @new.CustomProperties ); @new.Id = old.Id ; @new.Name = old.Name ; @new.Position = old.Position ; @new.Visible = old.Visible ; }
public FloatAnimationBehaviour(ItemProperties itemProperties, FloatAnimationBehaviourProperties behaviourProperties) { _propertiesThisAppliesTo = itemProperties ; _behaviourProperties = behaviourProperties ; }