Monobjc.Tools.Generator.Model.ClassEntity.GetProperties C# (CSharp) Method

GetProperties() public method

Gets all methods (superclass and protocols).
public GetProperties ( bool includeSuper, bool includeProtocols ) : IEnumerable
includeSuper bool
includeProtocols bool
return IEnumerable
        public IEnumerable<PropertyEntity> GetProperties(bool includeSuper, bool includeProtocols)
        {
            List<PropertyEntity> properties = new List<PropertyEntity> (this.Properties);

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

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