About 51 results
Open links in new tab
  1. How does the @property decorator work in Python?

    I would like to understand how the built-in function property works. What confuses me is that property can also be used as a decorator, but it only takes arguments when used as a built-in …

  2. PHP Warning Deprecated: Creation of dynamic property is …

    Dec 21, 2022 · Databases have common parameters that are referenced. Using PHP 8 named parameters and Constructor property promotion, allows you to specify all of the possible …

  3. The ConnectionString property has not been initialized in .NET 8 …

    Nov 28, 2023 · Despite having a correct connection string in my appsettings.json, I am encountering an InvalidOperationException stating that the ConnectionString property has not …

  4. Creation of dynamic property CI_URI::$config is deprecated

    Jan 15, 2023 · ini_set('error_reporting', E_ALL & ~E_DEPRECATED); of course it is bad practice to disable these errors, as these errors should be heard loudly and fixed quickly. I opened an …

  5. java - Distinct by property - Stack Overflow

    In Java 8, how can I filter a collection using the Stream API by checking the distinctness of a property of each object? For example, I have a list of Person objects and I want to remove …

  6. What is the difference between a field and a property?

    Nov 17, 2008 · A property should always encapsulate one or more fields, and should never do any heavy lifting or validation. If you need a property such a UserName or Password to have …

  7. c# - Listen to changes of dependency property - Stack Overflow

    Jan 21, 2011 · Is there any way to listen to changes of a DependencyProperty? I want to be notified and perform some actions when the value changes but I cannot use binding. It is a …

  8. python - How to make a class property? - Stack Overflow

    Descriptors like property need to be in the type's dictionary to work their magic. So those in a class definition primarily affect the behaviour of instances of the class, with minimal effect on …

  9. How to fix "The ConnectionString property has not been initialized"

    How to fix "The ConnectionString property has not been initialized" Asked 16 years, 7 months ago Modified 4 months ago Viewed 513k times

  10. python - Dataclasses and property decorator - Stack Overflow

    Jun 28, 2018 · 21 An @property is typically used to store a seemingly public argument (e.g. name) into a private attribute (e.g. _name) through getters and setters, while dataclasses …