Exemplo n.º 1
0
        public override string ToString()
        {
            var hasGenericArguments = IsGenericMethod;

            return(string.Format(
                       "{0}.{1}{3}{4}{5}({2})",
                       DeclaringType,
                       Name,
                       ParameterTypes.StringJoin(", "),
                       hasGenericArguments ? "<" : null,
                       GenericArgumentTypes.StringJoin(", "),
                       hasGenericArguments ? ">" : null));
        }
Exemplo n.º 2
0
        public object Clone()
        {
            CompactClass compactClass = new CompactClass();

            compactClass.Name                 = Name != null ? (string)Name.Clone() : null;
            compactClass.ID                   = ID != null ? (string)ID.Clone() : null;
            compactClass.Assembly             = Assembly != null ? (string)Assembly.Clone() : null;
            compactClass.Type                 = Type != null ? (string)Type.Clone() : null;
            compactClass.IsGeneric            = IsGeneric;
            compactClass.GenericId            = GenericId != null ? (string)GenericId.Clone() : null;
            compactClass.NumberOfArgs         = NumberOfArgs != null ? (string)NumberOfArgs.Clone() : null;
            compactClass.GenericArgumentTypes = GenericArgumentTypes != null ? (GenericArgumentType[])GenericArgumentTypes.Clone() : null;
            compactClass.NonCompactFields     = NonCompactFields != null ? (Attrib[])NonCompactFields.Clone() : null;
            return(compactClass);
        }