Home
last modified time | relevance | path

Searched refs:ReadOnlyAttribute (Results 1 – 25 of 115) sorted by relevance

12345

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Primitives/tests/
H A DReadOnlyAttributeTests.cs17 var attribute = new ReadOnlyAttribute(isReadOnly); in Ctor_IsReadOnly()
24 yield return new object[] { ReadOnlyAttribute.Yes, ReadOnlyAttribute.Yes, true }; in Equals_TestData()
25 yield return new object[] { ReadOnlyAttribute.Yes, new ReadOnlyAttribute(true), true }; in Equals_TestData()
26 yield return new object[] { ReadOnlyAttribute.Yes, ReadOnlyAttribute.No, false }; in Equals_TestData()
28 yield return new object[] { ReadOnlyAttribute.Yes, new object(), false }; in Equals_TestData()
29 yield return new object[] { ReadOnlyAttribute.Yes, null, false }; in Equals_TestData()
34 …public void Equals_Object_ReturnsExpected(ReadOnlyAttribute attribute, object other, bool expected) in Equals_Object_ReturnsExpected()
37 if (other is ReadOnlyAttribute) in Equals_Object_ReturnsExpected()
45 yield return new object[] { ReadOnlyAttribute.Yes, true }; in DefaultProperties_TestData()
46 yield return new object[] { ReadOnlyAttribute.Default, false }; in DefaultProperties_TestData()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Primitives/src/System/ComponentModel/
H A DReadOnlyAttribute.cs12 public sealed class ReadOnlyAttribute : Attribute class
21 public static readonly ReadOnlyAttribute Yes = new ReadOnlyAttribute(true);
29 public static readonly ReadOnlyAttribute No = new ReadOnlyAttribute(false);
37 public static readonly ReadOnlyAttribute Default = No;
44 public ReadOnlyAttribute(bool isReadOnly) => IsReadOnly = isReadOnly;
61 ReadOnlyAttribute other = value as ReadOnlyAttribute; in Equals()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/compmod/system/componentmodel/
H A DReadOnlyAttribute.cs20 public sealed class ReadOnlyAttribute : Attribute { class
30 public static readonly ReadOnlyAttribute Yes = new ReadOnlyAttribute(true);
38 public static readonly ReadOnlyAttribute No = new ReadOnlyAttribute(false);
46 public static readonly ReadOnlyAttribute Default = No;
53 public ReadOnlyAttribute(bool isReadOnly) { in ReadOnlyAttribute() method in System.ComponentModel.ReadOnlyAttribute
78 ReadOnlyAttribute other = value as ReadOnlyAttribute; in Equals()
H A DExtendedPropertyDescriptor.cs44 attrList.Add(ReadOnlyAttribute.Yes); in ExtendedPropertyDescriptor()
92 return Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes);
H A DDebugExtendedPropertyDescriptor.cs64 attrList.Add(ReadOnlyAttribute.Yes); in DebugExtendedPropertyDescriptor()
131 return Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes);
/dports/science/py-molmod/molmod-1.4.8/molmod/test/
H A Dtest_utils.py37 a = ReadOnlyAttribute(none=False)
38 b = ReadOnlyAttribute()
46 a = ReadOnlyAttribute(int)
47 b = ReadOnlyAttribute(np.ndarray)
48 c = ReadOnlyAttribute(np.ndarray, npdim=2)
49 d = ReadOnlyAttribute(np.ndarray, npshape=(None,3))
50 e = ReadOnlyAttribute(np.ndarray, npdtype=np.floating)
58 a = ReadOnlyAttribute(int, none=False)
59 b = ReadOnlyAttribute(np.ndarray, check=check_b, npdim=1, npdtype=np.integer)
/dports/science/py-molmod/molmod-1.4.8/molmod/
H A Dmolecules.py33 from molmod.utils import cached, ReadOnly, ReadOnlyAttribute
84 numbers = ReadOnlyAttribute(np.ndarray, none=False, npdim=1,
86 coordinates = ReadOnlyAttribute(np.ndarray, npdim=2, npshape=(None,3),
89 title = ReadOnlyAttribute(str, doc="a short description of the system")
90 masses = ReadOnlyAttribute(np.ndarray, npdim=1, npdtype=np.floating,
92 graph = ReadOnlyAttribute(MolecularGraph, check=_check_graph,
94 symbols = ReadOnlyAttribute(tuple, _check_symbols, doc="symbols for the "
96 unit_cell = ReadOnlyAttribute(UnitCell, doc="description of the periodic "
H A Dutils.py77 class ReadOnlyAttribute(object): class
243 if isinstance(descriptor, ReadOnlyAttribute):
268 if isinstance(descriptor, ReadOnlyAttribute):
276 if not isinstance(descriptor, ReadOnlyAttribute):
285 if not isinstance(descriptor, ReadOnlyAttribute):
300 if isinstance(descriptor, ReadOnlyAttribute):
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.7/
H A DSystem.Messaging.cs238 [System.ComponentModel.ReadOnlyAttribute(true)]
242 [System.ComponentModel.ReadOnlyAttribute(true)]
246 [System.ComponentModel.ReadOnlyAttribute(true)]
250 [System.ComponentModel.ReadOnlyAttribute(true)]
257 [System.ComponentModel.ReadOnlyAttribute(true)]
264 [System.ComponentModel.ReadOnlyAttribute(true)]
268 [System.ComponentModel.ReadOnlyAttribute(true)]
276 [System.ComponentModel.ReadOnlyAttribute(true)]
280 [System.ComponentModel.ReadOnlyAttribute(true)]
284 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.7.1/
H A DSystem.Messaging.cs241 [System.ComponentModel.ReadOnlyAttribute(true)]
245 [System.ComponentModel.ReadOnlyAttribute(true)]
249 [System.ComponentModel.ReadOnlyAttribute(true)]
253 [System.ComponentModel.ReadOnlyAttribute(true)]
260 [System.ComponentModel.ReadOnlyAttribute(true)]
267 [System.ComponentModel.ReadOnlyAttribute(true)]
271 [System.ComponentModel.ReadOnlyAttribute(true)]
279 [System.ComponentModel.ReadOnlyAttribute(true)]
283 [System.ComponentModel.ReadOnlyAttribute(true)]
287 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.0/
H A DSystem.Messaging.cs293 [System.ComponentModel.ReadOnlyAttribute(true)]
297 [System.ComponentModel.ReadOnlyAttribute(true)]
301 [System.ComponentModel.ReadOnlyAttribute(true)]
305 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
323 [System.ComponentModel.ReadOnlyAttribute(true)]
331 [System.ComponentModel.ReadOnlyAttribute(true)]
335 [System.ComponentModel.ReadOnlyAttribute(true)]
339 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v2.0/
H A DSystem.Messaging.cs293 [System.ComponentModel.ReadOnlyAttribute(true)]
297 [System.ComponentModel.ReadOnlyAttribute(true)]
301 [System.ComponentModel.ReadOnlyAttribute(true)]
305 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
323 [System.ComponentModel.ReadOnlyAttribute(true)]
331 [System.ComponentModel.ReadOnlyAttribute(true)]
335 [System.ComponentModel.ReadOnlyAttribute(true)]
339 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/net_4_x/
H A DSystem.Messaging.cs293 [System.ComponentModel.ReadOnlyAttribute(true)]
297 [System.ComponentModel.ReadOnlyAttribute(true)]
301 [System.ComponentModel.ReadOnlyAttribute(true)]
305 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
323 [System.ComponentModel.ReadOnlyAttribute(true)]
331 [System.ComponentModel.ReadOnlyAttribute(true)]
335 [System.ComponentModel.ReadOnlyAttribute(true)]
339 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6.2/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6.1/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5.2/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5.1/
H A DSystem.Messaging.cs300 [System.ComponentModel.ReadOnlyAttribute(true)]
304 [System.ComponentModel.ReadOnlyAttribute(true)]
308 [System.ComponentModel.ReadOnlyAttribute(true)]
312 [System.ComponentModel.ReadOnlyAttribute(true)]
319 [System.ComponentModel.ReadOnlyAttribute(true)]
326 [System.ComponentModel.ReadOnlyAttribute(true)]
330 [System.ComponentModel.ReadOnlyAttribute(true)]
338 [System.ComponentModel.ReadOnlyAttribute(true)]
342 [System.ComponentModel.ReadOnlyAttribute(true)]
346 [System.ComponentModel.ReadOnlyAttribute(true)]
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/
H A DExtendedPropertyDescriptor.cs37 attrList.Add(ReadOnlyAttribute.Yes); in ExtendedPropertyDescriptor()
81 …public override bool IsReadOnly => Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.…
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/src/System.Web.Http/Metadata/Providers/
H A DCachedDataAnnotationsMetadataAttributes.cs28 public ReadOnlyAttribute ReadOnly { get; protected set; }
37 ReadOnly = attributes.OfType<ReadOnlyAttribute>().FirstOrDefault(); in CacheAttributes()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Primitives/ref/
H A DSystem.ComponentModel.Primitives.cs251 public sealed partial class ReadOnlyAttribute : System.Attribute class
253 public static readonly System.ComponentModel.ReadOnlyAttribute Default;
254 public static readonly System.ComponentModel.ReadOnlyAttribute No;
255 public static readonly System.ComponentModel.ReadOnlyAttribute Yes;
256 public ReadOnlyAttribute(bool isReadOnly) { } in ReadOnlyAttribute() method in System.ComponentModel.ReadOnlyAttribute
/dports/devel/p5-MooseX-ClassAttribute/MooseX-ClassAttribute-0.29/t/lib/
H A DSharedTests.pm31 ReadOnlyAttribute => {
244 eval { $thing->ReadOnlyAttribute(20) };
253 Child->ReadOnlyAttribute(), 30,
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/src/System.Web.Mvc/
H A DCachedDataAnnotationsMetadataAttributes.cs20 ReadOnly = attributes.OfType<ReadOnlyAttribute>().FirstOrDefault(); in CachedDataAnnotationsMetadataAttributes()
48 public ReadOnlyAttribute ReadOnly { get; protected set; }
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Mvc.Test/Test/
H A DAssociatedMetadataProviderTest.cs27 Assert.False(parms.Attributes.Any(a => a is ReadOnlyAttribute)); in ReadOnlyAttributeIsFilteredOffWhenContainerTypeIsViewPage()
41 Assert.False(parms.Attributes.Any(a => a is ReadOnlyAttribute)); in ReadOnlyAttributeIsFilteredOffWhenContainerTypeIsViewUserControl()
55 Assert.True(parms.Attributes.Any(a => a is ReadOnlyAttribute)); in ReadOnlyAttributeIsPreservedForReadOnlyModelProperties()
242 Assert.True(parms.Attributes.Any(a => a is ReadOnlyAttribute)); in GetMetadataForTypeIncludesAttributesOnType()

12345