Exemplo n.º 1
0
 public PropertyDefinition(IClass @class, string propertyName, bool isLegal, bool isEnabled, IFactory factory)
 {
     Attributes = new List <AttributeProxy>();
     Class      = @class;
     Name       = new IdentifierName(propertyName);
     IsLegal    = isLegal;
     IsEnabled  = isEnabled;
     _factory   = factory;
 }
Exemplo n.º 2
0
 public PropertyDefinition(IClass @class, string propertyName, bool isLegal, bool isEnabled, IFactory factory)
 {
     Attributes = new List<AttributeProxy>();
     Class = @class;
     Name = new IdentifierName(propertyName);
     IsLegal = isLegal;
     IsEnabled = isEnabled;
     _factory = factory;
 }
Exemplo n.º 3
0
        public DomPath(string fullPath, int typeNameDepth)
        {
            if (fullPath == null)
            {
                throw new NullReferenceException("fullPath");
            }

            _fullPath = fullPath;
            _typeNameDepth = typeNameDepth;

            var pathElements = fullPath.Split(new[] { '/', '\\' }, StringSplitOptions.RemoveEmptyEntries).Reverse().ToList();

            _typeName = new IdentifierName(string.Join("_", pathElements.Take(typeNameDepth + 1).Reverse()));
            _elementName = new IdentifierName(pathElements.First());

            unchecked
            {
                _hashCode = (fullPath.GetHashCode() * 397) ^ typeNameDepth;
            }
        }
Exemplo n.º 4
0
        public DomPath(string fullPath, int typeNameDepth)
        {
            if (fullPath == null)
            {
                throw new NullReferenceException("fullPath");
            }

            _fullPath      = fullPath;
            _typeNameDepth = typeNameDepth;

            var pathElements = fullPath.Split(new[] { '/', '\\' }, StringSplitOptions.RemoveEmptyEntries).Reverse().ToList();

            _typeName    = new IdentifierName(string.Join("_", pathElements.Take(typeNameDepth + 1).Reverse()));
            _elementName = new IdentifierName(pathElements.First());

            unchecked
            {
                _hashCode = (fullPath.GetHashCode() * 397) ^ typeNameDepth;
            }
        }