Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added InitalValue field to FieldDefinition #29

Open
wants to merge 1 commit into
base: metadata-provider
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Model/Types/TypeDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ public class FieldDefinition : ITypeMemberDefinition, IFieldReference
public IType Type { get; set; }
public string Name { get; set; }
public Constant Value { get; set; }

public bool IsStatic { get; set; }

public byte[] InitialValue { get; set; }
public FieldDefinition(string name, IType type)
{
this.Name = name;
this.Type = type;
this.Attributes = new HashSet<CustomAttribute>();
this.InitialValue = new byte[0];
}

#region ITypeMemberReference members
Expand Down