/// <summary> /// Initializes a new instance of the <see cref="AnnotationSchemaDefinition"/> class. /// </summary> /// <param name="name">The name of the annotation schema definition.</param> /// <param name="schema">The schema of the annotation schema definition.</param> public AnnotationSchemaDefinition(string name, IAnnotationSchema schema) { this.Name = name; this.Schema = schema; }
private AnnotationSchemaValueMetadata GetAnnotationValueMetadata(object value, IAnnotationSchema annotationSchema) { MethodInfo getMetadataProperty = annotationSchema.GetType().GetMethod("GetMetadata"); return((AnnotationSchemaValueMetadata)getMetadataProperty.Invoke(annotationSchema, new[] { value })); }