Ejemplo n.º 1
0
 /// <summary>
 /// Creates the object.
 /// </summary>
 /// <returns>
 /// The object.
 /// </returns>
 /// <param name='key'>
 /// Key.
 /// </param>
 internal static object CreateObject(PropertySpecification key)
 {
     return Convert.ChangeType(
         key.Property,
         Type.GetType(key.FullQualifiedTypeName, true, true));
 }
Ejemplo n.º 2
0
        public bool TryAddProperty(string graphElementIdString, string propertyIdString, PropertySpecification definition)
        {
            var graphElementId = Convert.ToInt32(graphElementIdString);
            var propertyId = Convert.ToUInt16(propertyIdString);

            var property = Convert.ChangeType(
                definition.Property,
                Type.GetType(definition.FullQualifiedTypeName, true, true));

            return _fallen8.TryAddProperty(graphElementId, propertyId, property);
        }
Ejemplo n.º 3
0
 public static Object Transform(PropertySpecification definition)
 {
     return definition.FullQualifiedTypeName == null
         ? definition.Property
         : Convert.ChangeType(definition.Property, Type.GetType(definition.FullQualifiedTypeName, true, true));
 }