IsTypeComplete() 공개 메소드

Determines whether the type described in the context is complete.
public IsTypeComplete ( Type type ) : bool
type System.Type The type to check for completion.
리턴 bool
예제 #1
0
        private void SetupProperties(DescriptionContext context, IClass @class)
        {
            if (context.IsTypeComplete(context.Type))
            {
                if (@class == context[context.Type])
                {
                    return;
                }

                foreach (var property in context[context.Type].SupportedProperties)
                {
                    @class.SupportedProperties.Add(property);
                }
            }
            else
            {
                var properties = context.Type.GetProperties(typeof(IEntity));
                foreach (var property in properties)
                {
                    @class.SupportedProperties.Add(BuildSupportedProperty(context, @class, context.Type, property));
                }
            }
        }
        private void SetupProperties(DescriptionContext context, IClass @class)
        {
            if (context.IsTypeComplete(context.Type))
            {
                if (@class == context[context.Type])
                {
                    return;
                }

                foreach (var property in context[context.Type].SupportedProperties)
                {
                    @class.SupportedProperties.Add(property);
                }
            }
            else
            {
                var properties = context.Type.GetProperties(typeof(IEntity));
                foreach (var property in properties)
                {
                    @class.SupportedProperties.Add(BuildSupportedProperty(context, @class, context.Type, property));
                }
            }
        }