예제 #1
0
        public GraphLabelledEntity AddLabels(Type type)
        {
            TypeManager.GetLabels(type).ToList().ForEach(p => { if (!((List <string>)Labels).Contains(p))
                                                                {
                                                                    ((List <string>)Labels).Add(p);
                                                                }
                                                         });

            return(this);
        }
예제 #2
0
        public GraphLabelledEntity RemoveLabels(Type type)
        {
            TypeManager.GetLabels(type).ToList().ForEach(p => ((List <string>)Labels).Remove(p));

            return(this);
        }