Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsReadOnlyField C# (CSharp) Méthode

IsReadOnlyField() public static méthode

public static IsReadOnlyField ( IField field ) : bool
field IField
Résultat bool
        public static bool IsReadOnlyField(IField field)
        {
            return field.IsInitOnly || field.IsLiteral;
        }

Usage Example

        static bool CanLoadAddress(Node node)
        {
            IEntity entity = node.Entity;

            if (null == entity)
            {
                return(true);
            }

            switch (entity.EntityType)
            {
            case EntityType.Local:
            {
                return(!((InternalLocal)entity).IsPrivateScope);
            }

            case EntityType.Parameter:
            {
                return(true);
            }

            case EntityType.Field:
            {
                return(!TypeSystemServices.IsReadOnlyField((IField)entity));
            }
            }
            return(false);
        }
All Usage Examples Of Boo.Lang.Compiler.TypeSystem.TypeSystemServices::IsReadOnlyField
TypeSystemServices