Monobjc.Tools.Generator.Model.ClassEntity.GetMethods C# (CSharp) Méthode

GetMethods() public méthode

Gets all methods (superclass and protocols).
public GetMethods ( bool includeSuper, bool includeProtocols ) : IEnumerable
includeSuper bool
includeProtocols bool
Résultat IEnumerable
        public IEnumerable<MethodEntity> GetMethods(bool includeSuper, bool includeProtocols)
        {
            List<MethodEntity> methods = new List<MethodEntity> (this.Methods);

            if (this.SuperClass != null && includeSuper) {
                methods.AddRange (this.SuperClass.GetMethods (true, true));
            }

            if (this.Protocols != null && includeProtocols) {
                foreach (ProtocolEntity protocol in this.Protocols) {
                    methods.AddRange (protocol.Methods);
                }
            }
            return methods.Distinct ();
        }