s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
TypeLibrary
SetProperty
chevron_left
Classes
class
TypeLibrary
search
Methods
functions
CheckValidationAttributes
functions
Create
functions
CreateProperty
functions
FindStaticMethods
functions
FromBytes
functions
GetAttribute
functions
GetAttributes
functions
GetEnumDescription
functions
GetGenericArguments
functions
GetGenericTypes
functions
GetMemberAttributes
functions
GetMemberByIdent
functions
GetMethodsWithAttribute
functions
GetPropertyDescriptions
functions
GetPropertyValue
functions
GetSerializedObject
functions
GetType
functions
GetTypeByIdent
functions
GetTypeIdent
functions
GetTypes
functions
GetTypesWithAttribute
functions
HasAttribute
functions
SetProperty
functions
ToBytes
functions
TryGetType
SetProperty
Set a named property on given object. Will perform extra magic for string inputs and try to convert to target property type.
method
bool
SetProperty
(
System.Object
target
,
string
name
,
System.Object
value
)
Parameters
Name
Type
Description
target
System.Object
The target object to set a named property on.
name
string
Name of the property to set.
value
System.Object
Value for the property.
Returns
Type
Description
bool
Whether the property was set or not.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.