Ejemplo n.º 1
0
        public static ReferenceString Create <T>(IList <T> dtos) where T : BaseDto
        {
            ReferenceString referenceString = new ReferenceString();

            dtos.ToList().ForEach(x => referenceString.Append(x.Id, x.ToString()));
            return(referenceString);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (!(obj is ReferenceString))
            {
                return(false);
            }
            ReferenceString rds = obj as ReferenceString;

            return(Value.Equals(rds.Value));
        }