Top "Readonly" questions

Read-only is a generic concept that means "not writeable" - Please DO NOT USE THIS TAG.

How do I set MySQL temporarily to read-only through the command line?

I'm creating a bash script which, among other things, gathers some data from a MySQL database. My MySQL user has …

mysql shell command-line readonly
How do I delete a directory with read-only files in C#?

I need to delete a directory that contains read-only files. Which approach is better: Using DirectoryInfo.Delete(), or, ManagementObject.InvokeMethod("…

c# directory readonly delete-directory
How do I open an already opened file with a .net StreamReader?

I have some .csv files which I'm using as part of a test bench. I can open them and read …

.net file streamreader readonly
Html.TextBox conditional attribute with ASP.NET MVC Preview 5

I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client …

asp.net-mvc attributes html-helper readonly
Can I change a private readonly field in C# using reflection?

I am wondering, since a lot of things can be done using reflection, can I change a private readonly field …

c# reflection field readonly
My project in Visual Studio is Read Only. What did I do?

I must have done something wrong. I have a C# project in Visual Studio 2008. All of a sudden I see …

c# visual-studio readonly
How to make Entity Framework Data Context Readonly

I need to expose an Entity Framework Data Context to 3rd party plugins. The purpose is to allow these plugins …

.net entity-framework entity-framework-4 datacontext readonly
Can parameters be constant?

I'm looking for the C# equivalent of Java's final. Does it exist? Does C# have anything like the following: public …

c# constants readonly parameter-passing
How to detect a SQL Server database's read-only status using T-SQL?

I need to know how to interrogate a Microsoft SQL Server, to see if a given database has been set …

sql-server database tsql readonly
Pushing read-only GUI properties back into ViewModel

I want to write a ViewModel that always knows the current state of some read-only dependency properties from the View. …

wpf data-binding mvvm readonly