modifiers

What is the difference between 'protected' and 'protected internal' ?

Hi All, Can someone please elaborate me the difference between 'protected' and 'protected internal' modifiers in C#? It looks they behave in same manner. ...

Difference between regular expression modifiers 'm' and 's'?

i often forget about the regular expression modifier "m" and "s" and their differences. what is a good way to remember them? as i understand them, they are: 'm' is for multiline, so that ^ and $ will match beginning of string and end of string multiple times. (as divided by "\n") 's' is so that the dot will match even ...

C# Locking, Properties & Permissions

I've been using lock on value type properties when multi-threaded access is required. Also, I've been meaning to become more diligent about applying proper access modifiers, especially in my library code that is starting to become useful in multiple projects. I've written some code and would like to request comments on the various stra...

JList containing JCheckBox and a String, with non ctrl click selection?

Hi all, Been a while since I posted on here, and now I am at a point where I find myself stuck yet again. For my assignment at uni, we have been asked to create an address book application. It is going well, and it's nearly completed, however one part of the project, which is purely my preference, eludes me. I'm not asking for help on ...

How to dynamicly apply variable modifiers in Smarty 2.x

Hi, I can't find the solution of applying modifiers dynamicly in Smarty. Template - I would like to work this way (example) {$myVariable|$modifiers} Php script $smarty->assign('myVariable', "brumla brumla na drum drum drum"); $smarty->assign('modifiers', "truncate:30|trim"); Or I would like to apply modifiers in php - is there any...

Why is the modifier set to Friend in Winforms?

When adding a new control to the designer in Winforms, the modifier on the control is set to Friend, but the default modifier is Private (right clicking the property and resetting the modifier). Does anyone know why? Is there a setting to set the modifier to default (Private)? ...

Flash AS3 - Internal namespace modifier

Hi, I am working on a library that I wish to hide the internals of to the outside world. I figured I can use 'internal class' where ever I wanted to hide the class, How ever to my understanding, declaring a class in namespace test.NS1 means it can only access classes defines in test.NS1 and nothing else. For example, (both in the sa...

.NET class access modifiers (friend and public)

I am developing a class library that will be used in several projects. In my class library, I have a "Shape" Class which has a number of properties. One of these properties is "Dimensions" returns a class with "Height" "Width" and "Depth" properties. How would I suppress the Dimension class from being viewable in the editor, whilst fre...

final and static in Java

I have read this sentence in a book but I didn't understand it: A field that is both static and final has only one piece of storage that cannot be changed. Can anyone explain it for me? ...