/// <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)); }
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); }
public static Object Transform(PropertySpecification definition) { return definition.FullQualifiedTypeName == null ? definition.Property : Convert.ChangeType(definition.Property, Type.GetType(definition.FullQualifiedTypeName, true, true)); }