mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
some changes
This commit is contained in:
@@ -162,20 +162,28 @@ namespace OpenSim.Framework
|
||||
/// <value>
|
||||
/// The description of the inventory item (must be less than 64 characters)
|
||||
/// </value>
|
||||
|
||||
public osUTF8 UTF8Description;
|
||||
public string Description
|
||||
{
|
||||
get { return UTF8Description == null ? string.Empty : UTF8Description.ToString();}
|
||||
set { UTF8Description = string.IsNullOrWhiteSpace(value) ? null : new osUTF8(value);}
|
||||
}
|
||||
/*
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return UTF8Description.ToString();
|
||||
return m_description;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
UTF8Description = new osUTF8(value);
|
||||
m_description = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected string m_description = String.Empty;
|
||||
*/
|
||||
/// <value>
|
||||
///
|
||||
/// </value>
|
||||
|
||||
@@ -40,11 +40,19 @@ namespace OpenSim.Framework
|
||||
|
||||
public virtual string Name
|
||||
{
|
||||
get { return UTF8Name.ToString(); }
|
||||
set { UTF8Name = new osUTF8(value); }
|
||||
get { return UTF8Name == null ? string.Empty : UTF8Name.ToString(); }
|
||||
set { UTF8Name = string.IsNullOrEmpty(value) ? null : new osUTF8(value); }
|
||||
}
|
||||
public osUTF8 UTF8Name;
|
||||
|
||||
/*
|
||||
public virtual string Name
|
||||
{
|
||||
get { return m_name; }
|
||||
set { m_name = value; }
|
||||
}
|
||||
private string m_name = string.Empty;
|
||||
*/
|
||||
/// <summary>
|
||||
/// A UUID containing the ID for the inventory node itself
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user