Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberRubric"/> class.
 /// </summary>
 /// <param name="member">The member<see cref="IMemberRubric"/>.</param>
 public MemberRubric(IMemberRubric member)
 {
     RubricInfo = ((MemberInfo)member);
     RubricName = member.RubricName;
     RubricId   = member.RubricId;
     Visible    = member.Visible;
     Editable   = member.Editable;
     if (RubricInfo.MemberType == MemberTypes.Method)
     {
         serialcode.UniqueKey = (RubricName + "_" + new String(RubricParameterInfo
                                                               .SelectMany(p => p.ParameterType.Name)
                                                               .ToArray())).UniqueKey64();
     }
     else
     {
         serialcode.UniqueKey = RubricName.UniqueKey64();
     }
 }
 public MemberRubric(IMemberRubric member)
 {
     RubricInfo = ((MemberInfo)member);
     RubricName = member.RubricName;
     RubricId   = member.RubricId;
     Visible    = member.Visible;
     Editable   = member.Editable;
     if (RubricInfo.MemberType == MemberTypes.Method)
     {
         SystemSerialCode = new Ussn((new String(RubricParameterInfo
                                                 .SelectMany(p => p.ParameterType.Name)
                                                 .ToArray()) + "_" + RubricName).GetHashKey64());
     }
     else
     {
         SystemSerialCode = new Ussn(RubricName.GetHashKey64());
     }
 }