예제 #1
0
 /// <summary>
 ///     Converts the tag to string.
 /// </summary>
 /// <param name="tag">The tag.</param>
 /// <returns>string representation for the tag</returns>
 public static string ConvertTagToString(DesignTag tag)
 {
     return("Lokad.Class." + tag);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClassDesignAttribute"/> class.
 /// </summary>
 /// <param name="designTag">The design tag.</param>
 public ClassDesignAttribute(DesignTag designTag)
 {
     _classDesignTags = new[] { DesignUtil.ConvertTagToString(designTag) };
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClassDesignAttribute"/> class.
 /// </summary>
 /// <param name="designTag">The design tag.</param>
 public ClassDesignAttribute(DesignTag designTag)
 {
     _classDesignTags = new[] {DesignUtil.ConvertTagToString(designTag)};
 }