Amazon.DynamoDBv2.DataModel.Utils.GetSingleDDBAttribute C# (CSharp) 메소드

GetSingleDDBAttribute() 개인적인 정적인 메소드

private static GetSingleDDBAttribute ( object attributes ) : DynamoDBAttribute
attributes object
리턴 DynamoDBAttribute
        private static DynamoDBAttribute GetSingleDDBAttribute(object[] attributes)
        {
            if (attributes.Length == 0)
                return null;
            if (attributes.Length == 1)
                return (attributes[0] as DynamoDBAttribute);
            throw new InvalidOperationException("Cannot have multiple DynamoDBAttributes on a single member");
        }