Boo.Lang.Compiler.Steps.ProcessAssignmentsToSpecialMembers.IsReadOnlyMember C# (CSharp) Метод

IsReadOnlyMember() защищенный Метод

protected IsReadOnlyMember ( Boo.Lang.Compiler.Ast.MemberReferenceExpression container ) : bool
container Boo.Lang.Compiler.Ast.MemberReferenceExpression
Результат bool
        protected virtual bool IsReadOnlyMember(MemberReferenceExpression container)
        {
            switch (container.Entity.EntityType)
            {
                case EntityType.Property:
                {
                    return ((IProperty)container.Entity).GetSetMethod() == null;
                }
                case EntityType.Field:
                {
                    return TypeSystemServices.IsReadOnlyField((IField)container.Entity);
                }
            }
            return true;
        }